summaryrefslogtreecommitdiffstats
path: root/server/bin/checkperms
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2018-06-14 10:48:39 +0200
committerRamón M. Gómez <ramongomez@us.es>2018-06-14 10:59:34 +0200
commitb60d6b807c580e58f06a337def9a1a83b1f3bcfc (patch)
tree7ee39403eb4f70a9f7120eb8168d6317b339bf1e /server/bin/checkperms
parent5367fb5e61f2e89797bfe7df0e4811a1ff890f08 (diff)
parente0e4c021382f2c8a66402c545229aa8e528750f9 (diff)
#794: Applying new commits from {{{devel}}} branch to {{{pjlink}}} branch.
Diffstat (limited to 'server/bin/checkperms')
-rwxr-xr-xserver/bin/checkperms5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/bin/checkperms b/server/bin/checkperms
index 0d80183c..fbe3be0f 100755
--- a/server/bin/checkperms
+++ b/server/bin/checkperms
@@ -37,6 +37,7 @@ if [ -z "$(getent passwd "$APACHE_USER" 2>/dev/null)" -o -z "$(getent group "$AP
exit 1
fi
+mkdir -p $OPENGNSYS_DIR/{log/clients,images/groups}
chown -R :$OPENGNSYS_USER $OPENGNSYS_DIR/{log/clients,images/groups}
find $OPENGNSYS_DIR/log/clients -type f -exec chmod 664 {} \;
find $OPENGNSYS_DIR/images -maxdepth 1 -exec chown :$OPENGNSYS_USER {} \;
@@ -50,8 +51,8 @@ chmod 600 $OPENGNSYS_DIR/etc/{ogAdmServer,ogAdmAgent}*.cfg
chown root:$APACHE_GROUP $OPENGNSYS_DIR/{www/controlacceso*.php,etc/ogAdmRepo*.cfg}
chmod 640 $OPENGNSYS_DIR/{www/controlacceso*.php,etc/ogAdmRepo*.cfg}
chown -R $APACHE_USER:$APACHE_GROUP $OPENGNSYS_DIR/www/images/{fotos,iconos}
-chown -R $APACHE_USER:$APACHE_GROUP $OPENGNSYS_DIR/www/api
-chown -R $APACHE_USER:$APACHE_GROUP $OPENGNSYS_DIR/www/tmp # ???
+mkdir -p $OPENGNSYS_DIR/www/{api,tmp}
+chown -R $APACHE_USER:$APACHE_GROUP $OPENGNSYS_DIR/www/{api,tmp}
chown -R $APACHE_USER:$APACHE_GROUP $OPENGNSYS_DIR/tftpboot/menu.lst
chown -R :$OPENGNSYS_USER $OPENGNSYS_DIR/tftpboot/ogLive*
find -L $OPENGNSYS_DIR/tftpboot -type d -exec chmod 755 {} \;