X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=perms.sh-dist;h=ae9f3129caebcefad3cab7b96d91ff2e18ce476f;hb=4b727b30594ddc19ee7b730978946d0a8550aedc;hp=04a376c5b36c2ce8900c84af6f18277ab38e1201;hpb=d629d9481e10ee8b835fa8858a9b85ccb1db58f9;p=mir.git diff --git a/perms.sh-dist b/perms.sh-dist index 04a376c5..ae9f3129 100755 --- a/perms.sh-dist +++ b/perms.sh-dist @@ -1,7 +1,7 @@ #!/bin/sh # 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 755 644 $INSTDIR/templates -#grant 755 644 $INSTDIR/produced +grant 750 640 $INSTDIR/WEB-INF/etc/config.properties + +echo "Permissions set."