Update iventoy-install.sh

tweak
pull/2795/head
tteckster 7 months ago committed by GitHub
parent edbaa1fbdc
commit dbe21ab539
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -29,8 +29,7 @@ rm -rf iventoy*.tar.gz
msg_ok "Installed iVentoy"
msg_info "Creating Service"
service_path="/etc/systemd/system/iventoy.service"
echo "# /etc/systemd/system/iventoy.service
cat <<EOF >/etc/systemd/system/iventoy.service
[Unit]
Description=iVentoy PXE Booter
Documentation=https://www.iventoy.com
@ -47,8 +46,9 @@ WorkingDirectory=/opt/iventoy
Restart=on-failure
[Install]
WantedBy=multi-user.target" >$service_path
systemctl enable --now -q iventoy.service
WantedBy=multi-user.target
EOF
systemctl enable -q --now iventoy.service
msg_ok "Created Service"
motd_ssh

Loading…
Cancel
Save

Powered by BW's shoe-string budget.