From 264aed1ace2b4a1836d236ebac131212abaa2f78 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 24 Sep 2020 18:37:30 -0400 Subject: [PATCH] v1.0.3 - Set permissions to SMA log file --- root/scripts/video-pp.bash | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/root/scripts/video-pp.bash b/root/scripts/video-pp.bash index 7f9bc1f..2829dad 100644 --- a/root/scripts/video-pp.bash +++ b/root/scripts/video-pp.bash @@ -11,7 +11,7 @@ function Configuration { log "##### SABnzbd Category: $category" log "##### DOCKER: $TITLE" log "##### SCRIPT: Video Post Processor ($TITLESHORT)" - log "##### SCRIPT VERSION: 1.0.2" + log "##### SCRIPT VERSION: 1.0.3" log "##### DOCKER VERSION: $VERSION" log "##### CONFIGURATION VERIFICATION" @@ -337,7 +337,11 @@ function Main { fi if [ ${VIDEO_SMA} = TRUE ]; then - if [ -f "${basefilename}.${extension}" ]; then + if [ -f "${basefilename}.${extension}" ]; then + if [ -f /config/scripts/logs/sma.log ]; then + chmod 666 /config/scripts/logs/sma.log + chwon abc:abc /config/scripts/logs/sma.log + fi log "" log "Begin processing with Sickbeard MP4 Automator..." log ""