mambawelcome: use systemd hostnamectl to set hostname

This commit is contained in:
Silvan Calarco 2013-07-01 20:19:01 +02:00
parent 1a528e18d1
commit 59afeb3e06

View File

@ -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