scripts/mir-setup/README: update with link to new doc on wiki
[mir.git] / perms.sh-dist
index e373726..0711ab3 100755 (executable)
@@ -1,7 +1,7 @@
-#!/bin/sh
+#!/bin/bash
 
 # Where the installed system resides
-INSTDIR=../Mir
+INSTDIR=`dirname $0`/bin/mir
 
 # The group all files belong to
 GROUP=www-data
@@ -41,9 +41,8 @@ function grant()
        umask $UMASK
 }
 
-chgrp $GROUP $INSTDIR -R > /dev/null 2>&1
+chgrp $GROUP $INSTDIR -R #> /dev/null 2>&1
 grant 775 664 $INSTDIR > /dev/null 2>&1
-grant 750 640 $INSTDIR/WEB-INF/classes/config.properties
-grant 740 640 $INSTDIR/src/config.properties
+grant 750 640 $INSTDIR/WEB-INF/etc/config.properties
 
-echo "Permissions set."
\ No newline at end of file
+echo "Permissions set."