summaryrefslogtreecommitdiffstats
path: root/root/usr/bin/fix-permissions
diff options
context:
space:
mode:
Diffstat (limited to 'root/usr/bin/fix-permissions')
-rwxr-xr-xroot/usr/bin/fix-permissions7
1 files changed, 7 insertions, 0 deletions
diff --git a/root/usr/bin/fix-permissions b/root/usr/bin/fix-permissions
new file mode 100755
index 0000000..b90d208
--- /dev/null
+++ b/root/usr/bin/fix-permissions
@@ -0,0 +1,7 @@
+#!/bin/sh
+# Fix permissions on the given directory to allow group read/write of
+# regular files and execute of directories.
+chown -R git "$1"
+chgrp -R 0 "$1"
+chmod -R g+rw "$1"
+find "$1" -type d -exec chmod g+x {} +