diff options
author | ramon <ramongomez@us.es> | 2017-03-14 10:03:29 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2017-03-14 10:03:29 +0000 |
commit | 6f4d39baf193d0418f59cfb786f6aa2e08475936 (patch) | |
tree | ff150c663812051aecb5eb4b99be9e8d79ad500b /server | |
parent | 44c5b2a0f845ef085489cd87c3f94fc90697b309 (diff) |
#730: Cambios en instalar y actualizar:
* Crear directorio para grupos en el repositorio local.
* Evitar cambiar permisos en imágenes de tipo directorio.
* Corregir errata al detectar directorio de Apache en actualizador.
* Actualizar configuración del sitio de OpenGnsys a partir de la plantilla.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5231 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'server')
-rwxr-xr-x | server/bin/checkperms | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/server/bin/checkperms b/server/bin/checkperms index 483b176f..97379004 100755 --- a/server/bin/checkperms +++ b/server/bin/checkperms @@ -37,8 +37,11 @@ if [ -z "$(getent passwd "$APACHE_USER" 2>/dev/null)" -o -z "$(getent group "$AP exit 1 fi -chown -R :$OPENGNSYS_USER $OPENGNSYS_DIR/{log/clients,images} -chmod -R 775 $OPENGNSYS_DIR/{log/clients,images} +chown -R :$OPENGNSYS_USER $OPENGNSYS_DIR/{log/clients,images/group} +find $OPENGNSYS_DIR/log/clients -type f -exec chmod 664 {} \; +find $OPENGNSYS_DIR/images -maxdepth 1 -exec chown :$OPENGNSYS_USER {} \; +find $OPENGNSYS_DIR/images -maxdepth 1 -type d -exec chmod 775 {} \; +find $OPENGNSYS_DIR/images -maxdepth 1 -type f -exec chmod 664 {} \; find $OPENGNSYS_DIR/client/{interfaceAdm,scripts} ! -name "*.txt" -exec chmod +x {} \; chown $OPENGNSYS_USER:$OPENGNSYS_USER $OPENGNSYS_DIR/client/interfaceAdm/CambiarAcceso chmod 700 $OPENGNSYS_DIR/client/interfaceAdm/CambiarAcceso |