setup.sh: fix — curl prerequisite check, exits with install instructions if missing
This commit is contained in:
@@ -22,11 +22,16 @@ if ! command -v apt-get &> /dev/null; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ensure curl is available (not installed on minimal Debian)
|
# Require curl as a prerequisite (needed to download the script itself)
|
||||||
if ! command -v curl &> /dev/null; then
|
if ! command -v curl &> /dev/null; then
|
||||||
echo "Installing curl..."
|
echo "ERROR: curl is required but not installed."
|
||||||
apt-get update -qq
|
echo ""
|
||||||
apt-get install -y -qq curl > /dev/null 2>&1
|
echo "Install it with:"
|
||||||
|
echo " apt-get install curl"
|
||||||
|
echo ""
|
||||||
|
echo "Then run this command again:"
|
||||||
|
echo " curl -sL https://gitea.ledrew.me/ledadmin/project-tracker/raw/branch/master/deploy/setup.sh | bash"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for Docker
|
# Check for Docker
|
||||||
|
|||||||
Reference in New Issue
Block a user