From b485f3008a06b2d340dd37796018fb2fff75ff93 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sun, 26 Mar 2023 10:11:29 -0400 Subject: [PATCH] change permissions --- QueueCleaner.bash | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/QueueCleaner.bash b/QueueCleaner.bash index 05a43cf..7f3cc1d 100644 --- a/QueueCleaner.bash +++ b/QueueCleaner.bash @@ -1,5 +1,5 @@ #!/usr/bin/with-contenv bash -scriptVersion="1.0.10" +scriptVersion="1.0.2" ######## Settings scriptInterval="15m" @@ -21,8 +21,10 @@ if [ -f "/config/logs/QueueCleaner.txt" ]; then find /config/logs -type f -name "QueueCleaner.txt" -size +1024k -delete fi -touch "/config/logs/QueueCleaner.txt" -chmod 666 "/config/logs/QueueCleaner.txt" +if [ ! -f "/config/logs/QueueCleaner.txt" ]; then + touch "/config/logs/QueueCleaner.txt" + chmod 777 "/config/logs/QueueCleaner.txt" +fi exec &> >(tee -a "/config/logs/QueueCleaner.txt") QueueCleanerProcess () {