更新 simpleadmin/console/menu/change_hostname.sh
This commit is contained in:
parent
1d61b5e9f0
commit
c52a9a49e4
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user