diff --git a/slib.sh b/slib.sh index 0cbedd4..0f84b4e 100644 --- a/slib.sh +++ b/slib.sh @@ -495,6 +495,7 @@ set_hostname () { else hostname "$line" echo "$line" > /etc/hostname + hostnamectl set-hostname "$line" 1>/dev/null 2>&1 detect_ip shortname=$(echo "$line" | cut -d"." -f1) if grep "^$address" /etc/hosts >/dev/null; then