diff options
Diffstat (limited to 'files')
-rw-r--r-- | files/sync-media | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/files/sync-media b/files/sync-media index dfeabeb..331294f 100644 --- a/files/sync-media +++ b/files/sync-media @@ -89,6 +89,14 @@ if [ -d "$CACHE" ]; then ( cd $CACHE/$folder echo "Syncing $CACHE/$folder..." + + # If there is a playlists folder, make sure mpd user can write to it + if [ -d "playlists" ]; then + $sudo chmod 775 playlists + $sudo chown -R mpd.audio playlists + $sudo chmod 664 playlists/* + fi + sync_media_identity sync_media_add git annex sync |