From dbe21ab5396ecdba8776cb4cd6334687aa45ab62 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 15 Apr 2024 08:35:06 -0400 Subject: [PATCH] Update iventoy-install.sh tweak --- install/iventoy-install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install/iventoy-install.sh b/install/iventoy-install.sh index 791438e5..6c48ab46 100644 --- a/install/iventoy-install.sh +++ b/install/iventoy-install.sh @@ -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 </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