diff --git a/simpleadmin/console/menu/change_hostname.sh b/simpleadmin/console/menu/change_hostname.sh index 3012e67..031648d 100644 --- a/simpleadmin/console/menu/change_hostname.sh +++ b/simpleadmin/console/menu/change_hostname.sh @@ -50,6 +50,8 @@ EOF cat > /lib/systemd/system/set-hostname.timer << EOF [Unit] Description=Set hostname 30 seconds after boot +After=network.target +Requires=network.target [Timer] OnBootSec=30sec @@ -57,6 +59,7 @@ Unit=set-hostname.service [Install] WantedBy=timers.target +Also=set-hostname.service EOF systemctl daemon-reload