v1.0.1 - bugfix for file permission errors

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

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
scriptVersion="1.0.019" scriptVersion="1.0.1"
arrEventType="$radarr_eventtype" arrEventType="$radarr_eventtype"
arrItemId=$radarr_movie_id arrItemId=$radarr_movie_id
tmdbApiKey="3b7751e3179f796565d88fdb2fcdf426" tmdbApiKey="3b7751e3179f796565d88fdb2fcdf426"
@ -39,7 +39,10 @@ if [ -f "/config/logs/MovieExtras.txt" ]; then
find /config/logs -type f -name "MovieExtras.txt" -size +1024k -delete find /config/logs -type f -name "MovieExtras.txt" -size +1024k -delete
fi fi
if [ ! -f "/config/logs/MovieExtras.txt" ]; then
touch "/config/logs/MovieExtras.txt" touch "/config/logs/MovieExtras.txt"
chmod 777 "/config/logs/MovieExtras.txt"
fi
exec &> >(tee -a "/config/logs/MovieExtras.txt") exec &> >(tee -a "/config/logs/MovieExtras.txt")
log () { log () {

Loading…
Cancel
Save