From 78eb6a60e46a684d5eb643c1a5ee0060afcedad2 Mon Sep 17 00:00:00 2001 From: Diego Heras Date: Sat, 26 Oct 2019 05:04:36 +0200 Subject: [PATCH] updater: fix systemd auto-update (#6249) This should fix the systemd update issue. #5208 The users with this problem will have to reinstall the systemd service. --- install_service_systemd.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/install_service_systemd.sh b/install_service_systemd.sh index fcf59422c..09cd9049c 100755 --- a/install_service_systemd.sh +++ b/install_service_systemd.sh @@ -32,6 +32,23 @@ if [[ $(systemctl status ${jackettservice} | grep "active (running)") ]]; then exit 1 fi +# Write the Jackett's launcher +cat >"/bin/jackett_launcher.sh" < /dev/null ; do + sleep 1 +done + +echo "Jackett update complete" + +EOL + +# Give execution permissions +chmod +x "/bin/jackett_launcher.sh" + # Write the systemd service descriptor cat >"/etc/systemd/system/${jackettservice}" <