From 3baadc6aba637f77b6447a6e172b1a4a21520b1f Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sat, 18 Mar 2023 15:39:54 -0400 Subject: [PATCH] Update 98-script-setup.bash --- root/etc/cont-init.d/98-script-setup.bash | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/root/etc/cont-init.d/98-script-setup.bash b/root/etc/cont-init.d/98-script-setup.bash index b736949..1bf25a4 100644 --- a/root/etc/cont-init.d/98-script-setup.bash +++ b/root/etc/cont-init.d/98-script-setup.bash @@ -44,12 +44,15 @@ find /config/extended -type f -exec chmod 666 {} \; chmod -R 777 /config/extended/scripts echo "Setting up scripts..." -if [ -f "/etc/services.d/QueueCleaner.bash" ]; then +if [ -f "/custom-services.d/QueueCleaner.bash" ]; then echo "Removing old script, QueueCleaner.bash" - rm "/etc/services.d/QueueCleaner.bash" + rm "/custom-services.d/QueueCleaner.bash" +fi +if [ ! -d /custom-services.d ]; then + mkdir -p /custom-services.d fi echo "Downloading and setting up QueueCleaner.bash" -curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/QueueCleaner.bash" -o "/etc/services.d/QueueCleaner.bash" -chmod 777 "/etc/services.d/QueueCleaner.bash" +curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/QueueCleaner.bash" -o "/custom-services.d/QueueCleaner.bash" +chmod 777 "/custom-services.d/QueueCleaner.bash" echo "Complete..." exit