v1.0.0042 - adjust completed permissions

pull/6/head
RandomNinjaAtk 3 years ago committed by GitHub
parent d285ab9698
commit f953105e0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -37,7 +37,7 @@ Configuration () {
log "" log ""
sleep 2 sleep 2
log "############# $dockerTitle" log "############# $dockerTitle"
log "############# SCRIPT VERSION 1.0.0041" log "############# SCRIPT VERSION 1.0.0042"
log "############# DOCKER VERSION $dockerVersion" log "############# DOCKER VERSION $dockerVersion"
if [ -z $topLimit ]; then if [ -z $topLimit ]; then
@ -479,10 +479,8 @@ DownloadProcess () {
mv "$file" "/downloads/lidarr-extended/complete/$downloadedAlbumFolder"/ mv "$file" "/downloads/lidarr-extended/complete/$downloadedAlbumFolder"/
done done
chmod 777 "/downloads/lidarr-extended/complete/$downloadedAlbumFolder" chmod -R 777 /downloads/lidarr-extended/complete
chown abc:abc "/downloads/lidarr-extended/complete/$downloadedAlbumFolder" chown -R abc:abc /downloads/lidarr-extended/complete
chmod 666 "/downloads/lidarr-extended/complete/$downloadedAlbumFolder"/*
chown abc:abc "/downloads/lidarr-extended/complete/$downloadedAlbumFolder"/*
ProcessWithBeets "/downloads/lidarr-extended/complete/$downloadedAlbumFolder" "${albumquality^^}" "$2" ProcessWithBeets "/downloads/lidarr-extended/complete/$downloadedAlbumFolder" "${albumquality^^}" "$2"
@ -1035,11 +1033,9 @@ ProcessWithBeets () {
downloadedAlbumFolder="${matchedLidarrAlbumArtistCleanName}-${matchedTagsAlbumTitleClean} ($matchedTagsAlbumYear)-${albumquality^^}-$3" downloadedAlbumFolder="${matchedLidarrAlbumArtistCleanName}-${matchedTagsAlbumTitleClean} ($matchedTagsAlbumYear)-${albumquality^^}-$3"
if [ "$1" != "/downloads/lidarr-extended/complete/$downloadedAlbumFolder" ];then if [ "$1" != "/downloads/lidarr-extended/complete/$downloadedAlbumFolder" ];then
mv "$1" "/downloads/lidarr-extended/complete/$downloadedAlbumFolder" 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 fi
chmod -R 777 "/downloads/lidarr-extended/complete"
chown -R abc:abc "/downloads/lidarr-extended/complete"
} }
CheckLidarrBeforeImport () { CheckLidarrBeforeImport () {

Loading…
Cancel
Save