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:
@@ -1,7 +1,15 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
export DOKKU_REPO=${DOKKU_REPO:-"https://github.com/progrium/dokku.git"}
|
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 update
|
||||||
apt-get install -y git make curl software-properties-common
|
apt-get install -y git make curl software-properties-common
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user