mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-17 20:11:17 +00:00
Update iventoy-install.sh
tweak
This commit is contained in:
parent
edbaa1fbdc
commit
dbe21ab539
@ -29,8 +29,7 @@ rm -rf iventoy*.tar.gz
|
|||||||
msg_ok "Installed iVentoy"
|
msg_ok "Installed iVentoy"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
service_path="/etc/systemd/system/iventoy.service"
|
cat <<EOF >/etc/systemd/system/iventoy.service
|
||||||
echo "# /etc/systemd/system/iventoy.service
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=iVentoy PXE Booter
|
Description=iVentoy PXE Booter
|
||||||
Documentation=https://www.iventoy.com
|
Documentation=https://www.iventoy.com
|
||||||
@ -47,8 +46,9 @@ WorkingDirectory=/opt/iventoy
|
|||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target" >$service_path
|
WantedBy=multi-user.target
|
||||||
systemctl enable --now -q iventoy.service
|
EOF
|
||||||
|
systemctl enable -q --now iventoy.service
|
||||||
msg_ok "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
Loading…
Reference in New Issue
Block a user