更新 simpleadmin/console/menu/change_hostname.sh

This commit is contained in:
sky 2024-12-14 00:15:20 +08:00
parent 1d61b5e9f0
commit c52a9a49e4

View File

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