aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/sync-media
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl/sync-media')
-rwxr-xr-xshare/hydractl/sync-media8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/hydractl/sync-media b/share/hydractl/sync-media
index f3cd973..bf95678 100755
--- a/share/hydractl/sync-media
+++ b/share/hydractl/sync-media
@@ -75,7 +75,7 @@ function sync_media_add_metadata {
function sync_media_playlist_perms {
if [ -d "playlists" ]; then
$sudo chmod 775 playlists
- $sudo chown -R mpd.audio playlists
+ $sudo chown -R mpd:audio playlists
find playlists -type f -exec sudo chmod 664 {} \;
find playlists -type d -exec sudo chmod 775 {} \;
fi
@@ -87,7 +87,7 @@ function sync_media_incoming_perms {
echo "Fixing $INCOMING permissions..."
$sudo find $INCOMING -type f -exec chmod 664 {} \;
$sudo find $INCOMING -type d -exec chmod 775 {} \;
- $sudo chown -R $WHOAMI.incoming $INCOMING
+ $sudo chown -R $WHOAMI:incoming $INCOMING
fi
}
@@ -187,8 +187,8 @@ mkdir -p $CACHE
#echo "Fixing $CACHE permissions..."
#$sudo find $CACHE -type f -exec chmod 644 {} \;
#$sudo find $CACHE -type d -exec chmod 755 {} \;
-$sudo chown $WHOAMI. $CACHE
-$sudo chown $WHOAMI. $CACHE/*
+$sudo chown $WHOAMI: $CACHE
+$sudo chown $WHOAMI: $CACHE/*
# Check if a specific repository was passed via the command line
if [ ! -z "$REPOSITORY" ] && [ -d "$CACHE/$REPOSITORY" ] && ! echo "$REPOSITORY" | grep -q -- '--'; then