mambawelcome: use systemd hostnamectl to set hostname
This commit is contained in:
parent
1a528e18d1
commit
59afeb3e06
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user