]> gitweb.fluxo.info Git - hydra.git/commitdiff
Sync-media: folder ownership
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 2 Oct 2016 22:56:56 +0000 (19:56 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 2 Oct 2016 22:56:56 +0000 (19:56 -0300)
share/hydractl/sync-media

index 55169067a7858d225b4e7e4c98e9aab293229e51..8b1fc79f4b0f7320900761f6bf55be5439d3eed6 100755 (executable)
@@ -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