From c6c75e6271bec42fd7e5e7bfc4d28f6e71c33eb0 Mon Sep 17 00:00:00 2001 From: Donkie Date: Fri, 2 Feb 2024 23:14:54 +0100 Subject: [PATCH] Prefix ExecStart with bash to circumvent execute permission issue No matter how many ways we try to add execute permissions to these scripts they always seem to get lost in one way or another. Now for example Moonraker doesn't run the install_debian.sh script, so the chmod never gets run. A .zip file doesn't seem to properly store the execute permission, so this would never work. --- scripts/install_debian.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install_debian.sh b/scripts/install_debian.sh index f09f4da..75fb057 100755 --- a/scripts/install_debian.sh +++ b/scripts/install_debian.sh @@ -208,7 +208,7 @@ Description=Spoolman [Service] Type=simple -ExecStart=$spoolman_dir/scripts/start.sh +ExecStart=bash $spoolman_dir/scripts/start.sh WorkingDirectory=$spoolman_dir User=$USER Restart=always