diff --git a/mambawelcome/mambawelcome.sh b/mambawelcome/mambawelcome.sh index f3d2834..cdfd22e 100755 --- a/mambawelcome/mambawelcome.sh +++ b/mambawelcome/mambawelcome.sh @@ -149,7 +149,7 @@ sh -c "echo $INSTALL_ROOT_PASSWORD | passwd --stdin" || { # set hostname and domain [[ "$INSTALL_HOSTNAME" ]] && { - hostname $INSTALL_HOSTNAME + hostnamectl set-hostname $INSTALL_HOSTNAME sed -i "s|HOSTNAME=.*|HOSTNAME=$INSTALL_HOSTNAME|" \ /etc/sysconfig/network