summaryrefslogtreecommitdiff
path: root/misc/makerelease/darwin/scripts/postinstall
diff options
context:
space:
mode:
Diffstat (limited to 'misc/makerelease/darwin/scripts/postinstall')
-rwxr-xr-xmisc/makerelease/darwin/scripts/postinstall10
1 files changed, 10 insertions, 0 deletions
diff --git a/misc/makerelease/darwin/scripts/postinstall b/misc/makerelease/darwin/scripts/postinstall
new file mode 100755
index 000000000..13f5bff9b
--- /dev/null
+++ b/misc/makerelease/darwin/scripts/postinstall
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+GOROOT=/usr/local/go
+
+echo "Fixing permissions"
+cd $GOROOT
+find . -exec chmod ugo+r \{\} \;
+find bin -exec chmod ugo+rx \{\} \;
+find . -type d -exec chmod ugo+rx \{\} \;
+chmod o-w .