From f953105e0b73ccb61fe20d4c57593c894278dae3 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 21 Jun 2022 11:24:59 +0000 Subject: [PATCH] v1.0.0042 - adjust completed permissions --- root/scripts/download.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/root/scripts/download.sh b/root/scripts/download.sh index 11c1700..8a1f4e0 100644 --- a/root/scripts/download.sh +++ b/root/scripts/download.sh @@ -37,7 +37,7 @@ Configuration () { log "" sleep 2 log "############# $dockerTitle" - log "############# SCRIPT VERSION 1.0.0041" + log "############# SCRIPT VERSION 1.0.0042" log "############# DOCKER VERSION $dockerVersion" if [ -z $topLimit ]; then @@ -479,10 +479,8 @@ DownloadProcess () { mv "$file" "/downloads/lidarr-extended/complete/$downloadedAlbumFolder"/ done - chmod 777 "/downloads/lidarr-extended/complete/$downloadedAlbumFolder" - chown abc:abc "/downloads/lidarr-extended/complete/$downloadedAlbumFolder" - chmod 666 "/downloads/lidarr-extended/complete/$downloadedAlbumFolder"/* - chown abc:abc "/downloads/lidarr-extended/complete/$downloadedAlbumFolder"/* + chmod -R 777 /downloads/lidarr-extended/complete + chown -R abc:abc /downloads/lidarr-extended/complete ProcessWithBeets "/downloads/lidarr-extended/complete/$downloadedAlbumFolder" "${albumquality^^}" "$2" @@ -1035,11 +1033,9 @@ ProcessWithBeets () { downloadedAlbumFolder="${matchedLidarrAlbumArtistCleanName}-${matchedTagsAlbumTitleClean} ($matchedTagsAlbumYear)-${albumquality^^}-$3" if [ "$1" != "/downloads/lidarr-extended/complete/$downloadedAlbumFolder" ];then mv "$1" "/downloads/lidarr-extended/complete/$downloadedAlbumFolder" - chmod 777 "/downloads/lidarr-extended/complete/$downloadedAlbumFolder" - chown abc:abc "/downloads/lidarr-extended/complete/$downloadedAlbumFolder" - chmod 666 "/downloads/lidarr-extended/complete/$downloadedAlbumFolder"/* - chown abc:abc "/downloads/lidarr-extended/complete/$downloadedAlbumFolder"/* fi + chmod -R 777 "/downloads/lidarr-extended/complete" + chown -R abc:abc "/downloads/lidarr-extended/complete" } CheckLidarrBeforeImport () {