diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2019-06-17 19:08:08 +0200 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2019-06-17 19:08:08 +0200 |
commit | 72d929592a60817a878d45b342813855ffc10cf8 (patch) | |
tree | 920d63aaf1468a35af9e2aa06b75352cd3671865 /server/bin | |
parent | 418feb183560ff70a72df1c668481696f55fdf62 (diff) |
#914: Fixed bug in commit {{{6a2bd87}}} and {{{5050850}}}.
Diffstat (limited to 'server/bin')
-rwxr-xr-x | server/bin/checkperms | 2 | ||||
-rwxr-xr-x | server/bin/setsmbpass | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/bin/checkperms b/server/bin/checkperms index 424c1b48..3f79e2d3 100755 --- a/server/bin/checkperms +++ b/server/bin/checkperms @@ -45,7 +45,7 @@ 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 -R $OPENGNSYS_USER:$OPENGNSYS_USER $OPENGNSYS_DIR/client/etc/ssl/private -chmod -R go-rwx $OPENGNSYS_USER:$OPENGNSYS_USER $OPENGNSYS_DIR/client/etc/ssl/private +chmod -R go-rwx $OPENGNSYS_DIR/client/etc/ssl/private chown $OPENGNSYS_USER:$OPENGNSYS_USER $OPENGNSYS_DIR/client/interfaceAdm/CambiarAcceso chmod 700 $OPENGNSYS_DIR/client/interfaceAdm/CambiarAcceso chown root:root $OPENGNSYS_DIR/etc/{ogAdmServer,ogAdmAgent}*.cfg diff --git a/server/bin/setsmbpass b/server/bin/setsmbpass index 4d91973d..efd90eec 100755 --- a/server/bin/setsmbpass +++ b/server/bin/setsmbpass @@ -105,7 +105,7 @@ for OGLIVE in $LIST; do done if [[ $CHANGES != 0 ]]; then # Ticket 565, preparar acceso Rsync servidor. - sed -i -n -e "/^$SAMBAUSER:/!p" -e "$ a$SAMBAUSER:$SAMBAPASS" /etc/rsyncd.secrets + [ -e /etc/rsyncd.secrets ] && sed -i -n -e "/^$SAMBAUSER:/!p" -e "$ a$SAMBAUSER:$SAMBAPASS" /etc/rsyncd.secrets || echo "$SAMBAUSER:$SAMBAPASS" > /etc/rsyncd.secrets chown root.root /etc/rsyncd.secrets chmod 600 /etc/rsyncd.secrets # Cambiar clave Samba. |