From 15ae5634c83006aedfa62a0f2b68160b2543bbba Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sun, 19 Mar 2023 15:56:39 -0400 Subject: [PATCH] Enable script disabling... https://github.com/RandomNinjaAtk/arr-scripts/issues/1 - Fix --- root/etc/services.d/extended_queuecleaner/run | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/root/etc/services.d/extended_queuecleaner/run b/root/etc/services.d/extended_queuecleaner/run index 75ccf36..cf71239 100644 --- a/root/etc/services.d/extended_queuecleaner/run +++ b/root/etc/services.d/extended_queuecleaner/run @@ -1,2 +1,8 @@ #!/usr/bin/with-contenv bash -bash /config/extended/scripts/QueueCleaner.bash +if [ "$enableQueueCleaner" != "true" ]; then + echo "QueueCleaner.bash Script disabled, enable by setting parameter: enableQueueCleaner=true" + sleep infinity +else + bash /config/extended/scripts/QueueCleaner.bash +fi +exit