From 62132391a5e597d317dd7060083b549d128e3b2f Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sun, 26 Mar 2023 17:23:26 -0400 Subject: [PATCH] set permissions --- root/scripts/Extras.bash | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/root/scripts/Extras.bash b/root/scripts/Extras.bash index ae58e15..03a1008 100644 --- a/root/scripts/Extras.bash +++ b/root/scripts/Extras.bash @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.012" +scriptVersion="1.0.1" arrEventType="$sonarr_eventtype" arrItemId=$sonarr_series_id tmdbApiKey="3b7751e3179f796565d88fdb2fcdf426" @@ -40,7 +40,10 @@ if [ -f "/config/logs/Extras.txt" ]; then find /config/logs -type f -name "Extras.txt" -size +1024k -delete fi -touch "/config/logs/Extras.txt" +if [ ! -f "/config/logs/Extras.txt" ]; then + touch "/config/logs/Extras.txt" + chmod 666 "/config/logs/Extras.txt" +fi exec &> >(tee -a "/config/logs/Extras.txt") if [ "$arrEventType" == "Test" ]; then