bootstrap.sh: Add shebang, Error out when apt-get is not found

...to fail more gracefully on systems without apt.
This commit is contained in:
jaseg
2013-09-20 16:05:43 +02:00
committed by jaseg
parent 9b4fe6badd
commit 85ab9944fa

View File

@@ -1,7 +1,15 @@
#!/usr/bin/env sh
set -e
export DEBIAN_FRONTEND=noninteractive
export DOKKU_REPO=${DOKKU_REPO:-"https://github.com/progrium/dokku.git"}
if ! which apt-get &>/dev/null
then
echo "This installation script requres apt-get. For manual installation instructions, consult https://github.com/progrium/dokku ."
exit 1
fi
apt-get update
apt-get install -y git make curl software-properties-common