From 59afeb3e06c7ddfe8e647b481aee805ca6ebd65a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Mon, 1 Jul 2013 20:19:01 +0200 Subject: [PATCH] mambawelcome: use systemd hostnamectl to set hostname --- mambawelcome/mambawelcome.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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