X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=perms.sh-dist;h=ae9f3129caebcefad3cab7b96d91ff2e18ce476f;hb=e5687e854b1a3916184741d5c5a5f18fd7180106;hp=e3737267cb67b7f24ec99735aac279ed8a1cbd8a;hpb=c6a2204d8d75293256fd17c07e54971d7672359a;p=mir.git diff --git a/perms.sh-dist b/perms.sh-dist index e3737267..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 750 640 $INSTDIR/WEB-INF/etc/config.properties -echo "Permissions set." \ No newline at end of file +echo "Permissions set."