更新 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
|
cat > /lib/systemd/system/set-hostname.timer << EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Set hostname 30 seconds after boot
|
Description=Set hostname 30 seconds after boot
|
||||||
|
After=network.target
|
||||||
|
Requires=network.target
|
||||||
|
|
||||||
[Timer]
|
[Timer]
|
||||||
OnBootSec=30sec
|
OnBootSec=30sec
|
||||||
@ -57,6 +59,7 @@ Unit=set-hostname.service
|
|||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=timers.target
|
WantedBy=timers.target
|
||||||
|
Also=set-hostname.service
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user