bug fix for potential permissions error

pull/49/head
RandomNinjaAtk 1 year ago committed by GitHub
parent 5edc5ded8a
commit 4330606763
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,5 @@
#!/usr/bin/env bash
scriptVersion="1.0.007"
scriptVersion="1.0.1"
notfidedBy="Radarr"
arrRootFolderPath="$(dirname "$radarr_movie_path")"
@ -14,7 +14,11 @@ movieExtrasPath="$1"
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 777 "/config/logs/MovieExtras.txt"
fi
exec &> >(tee -a "/config/logs/PlexNotify.txt")
log () {

Loading…
Cancel
Save