aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-09-26 19:18:55 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-09-26 19:18:55 -0300
commit28d32c0ceb5ceee2bfb50d00ea7d99f4e77ef284 (patch)
treeae0dfb35e55465e0ea4f556ec95a5c654e03008d
parent0579dc31729143cdd71bb30d58c8b215c9fe9cda (diff)
downloadpuppet-backup-28d32c0ceb5ceee2bfb50d00ea7d99f4e77ef284.tar.gz
puppet-backup-28d32c0ceb5ceee2bfb50d00ea7d99f4e77ef284.tar.bz2
Fix playlist perms at sync-media
-rw-r--r--files/sync-media3
1 files changed, 2 insertions, 1 deletions
diff --git a/files/sync-media b/files/sync-media
index 904adc0..ea658a0 100644
--- a/files/sync-media
+++ b/files/sync-media
@@ -102,7 +102,8 @@ if [ -d "$CACHE" ]; then
if [ -d "playlists" ]; then
$sudo chmod 775 playlists
$sudo chown -R mpd.audio playlists
- $sudo chmod 664 playlists/*
+ find playlists -type f --exec sudo chmod 664 {} \;
+ find playlists -type d --exec sudo chmod 775 {} \;
fi
sync_media_identity