更新 simpleadmin/console/menu/change_hostname.sh
This commit is contained in:
parent
dcbafa84bf
commit
b5753d448c
@ -39,10 +39,10 @@ hostname "$new_hostname"
|
|||||||
cat > /lib/systemd/system/set-hostname.service << EOF
|
cat > /lib/systemd/system/set-hostname.service << EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Set system hostname at boot
|
Description=Set system hostname at boot
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
ExecStartPre=/bin/sleep 10
|
||||||
ExecStart=/bin/sh -c 'hostname \$(cat /etc/hostname)'
|
ExecStart=/bin/sh -c 'hostname \$(cat /etc/hostname)'
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user