From 525470d2be92d625ef5a681ebe6561d9c942f3f8 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sun, 26 Mar 2023 17:22:32 -0400 Subject: [PATCH] permissions change --- root/scripts/PlexNotify.bash | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/root/scripts/PlexNotify.bash b/root/scripts/PlexNotify.bash index 509e525..7acb1e5 100644 --- a/root/scripts/PlexNotify.bash +++ b/root/scripts/PlexNotify.bash @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.005" +scriptVersion="1.0.1" notfidedBy="Sonarr" arrRootFolderPath="$(dirname "$sonarr_series_path")" arrFolderPath="$sonarr_series_path" @@ -19,7 +19,10 @@ if [ -f "/config/logs/PlexNotify.txt" ]; then find /config/logs -type f -name "PlexNotify.txt" -size +1024k -delete fi -touch "/config/logs/PlexNotify.txt" +if [ ! -f "/config/logs/PlexNotify.txt" ]; then + touch "/config/logs/PlexNotify.txt" + chmod 666 "/config/logs/PlexNotify.txt" +fi exec &> >(tee -a "/config/logs/PlexNotify.txt") if [ "$enableExtras" == "true" ]; then