mirror of
https://github.com/dokku/dokku.git
synced 2026-02-24 04:00:36 +01:00
Ensure the user has a valid hostname set
If the hostname is not set, the debian package install will fail, causing further downstream issues
This commit is contained in:
committed by
Jose Diaz-Gonzalez
parent
1781536dbe
commit
3fb2ed6462
@@ -24,6 +24,11 @@ if ! command -v apt-get &>/dev/null; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
hostname -f > /dev/null 2>&1 || {
|
||||
echo "This installation script requires that you have a hostname set for the instance. Please set a hostname for 127.0.0.1 in your /etc/hosts"
|
||||
exit 1
|
||||
}
|
||||
|
||||
apt-get update -qq > /dev/null
|
||||
which curl > /dev/null || apt-get install -qq -y curl
|
||||
[[ $(lsb_release -sr) == "12.04" ]] && apt-get install -qq -y python-software-properties
|
||||
|
||||
Reference in New Issue
Block a user