From 0e50d0fc37133e1753f9983426533780b0618b2e Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sun, 26 Mar 2023 17:21:54 -0400 Subject: [PATCH] set permissions --- root/scripts/Youtube-Series-Downloader.bash | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/root/scripts/Youtube-Series-Downloader.bash b/root/scripts/Youtube-Series-Downloader.bash index 794df51..e5f353e 100644 --- a/root/scripts/Youtube-Series-Downloader.bash +++ b/root/scripts/Youtube-Series-Downloader.bash @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.2" +scriptVersion="1.0.3" if [ -z "$arrUrl" ] || [ -z "$arrApiKey" ]; then arrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" @@ -23,7 +23,10 @@ if [ -f "/config/logs/Youtube-Series-Downloader.txt" ]; then find /config/logs -type f -name "Youtube-Series-Downloader.txt" -size +1024k -delete fi -touch "/config/logs/Youtube-Series-Downloader.txt" +if [ ! -f "/config/logs/Youtube-Series-Downloader.txt" ]; then + touch "/config/logs/Youtube-Series-Downloader.txt" + chmod 666 "/config/logs/Youtube-Series-Downloader.txt" +fi exec &> >(tee -a "/config/logs/Youtube-Series-Downloader.txt") if [ "$arrEventType" == "Test" ]; then