summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-10-02 19:56:56 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-10-02 19:56:56 -0300
commita19e7e7e1ef8aa67c58d150e7b5f207705752677 (patch)
tree1998d0a91115005ef81adf03173a35ee955ae826 /share
parent58911fc85f26acbcdd1d9f02466126b115770b33 (diff)
downloadhydra-a19e7e7e1ef8aa67c58d150e7b5f207705752677.tar.gz
hydra-a19e7e7e1ef8aa67c58d150e7b5f207705752677.tar.bz2
Sync-media: folder ownership
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/sync-media2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/hydractl/sync-media b/share/hydractl/sync-media
index 5516906..8b1fc79 100755
--- a/share/hydractl/sync-media
+++ b/share/hydractl/sync-media
@@ -160,6 +160,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/*
sync_media_incoming_perms
# Iterate over existing repositories in the local cache