mirror of
https://github.com/dokku/dokku.git
synced 2026-02-24 04:00:36 +01:00
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
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user