diff options
author | ramon <ramongomez@us.es> | 2011-10-26 10:24:11 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2011-10-26 10:24:11 +0000 |
commit | 56ec55c07fffdd50c0e63ab73f544d928cbdb528 (patch) | |
tree | e82008505d86b3658b5ccc992a5b1a3b7d31dc2e | |
parent | 3c66d00c0dab90be667344adf641b40c3402ea36 (diff) |
VersiĆ³n 1.0.2: Script de interfaz web cambia modo de montaje del repositorio cuando se modifica la clave por defecto del usuario Samba (modifica #428).
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2365 a21b9725-9963-47de-94b9-378ad31fedc9
-rwxr-xr-x | admin/Interface/CambiarAcceso | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/admin/Interface/CambiarAcceso b/admin/Interface/CambiarAcceso index 210b3d80..47f9d905 100755 --- a/admin/Interface/CambiarAcceso +++ b/admin/Interface/CambiarAcceso @@ -42,8 +42,10 @@ esac # Desmontar repositorio y volver a montarlo con el modo adecuado. umount $OGIMG ogEcho info "$PROG: Montar repositorio $REPO por $PROTO en modo $1" +MNTOPTS="$(awk -F\" '$1~/OPTIONS=$/ {print $2;}' /scripts/ogfunctions 2>/dev/null)" +MNTOPTS=${MNTOPTS:-"-o "} case "$PROTO" in nfs) mount -t nfs $REPOIP:$OGIMG $OGIMG -o $MODE ;; - smb) mount -t cifs //$REPOIP/ogimages $OGIMG -o $MODE,serverino,acl,username=opengnsys,password=og ;; + smb) mount -t cifs //$REPOIP/ogimages $OGIMG $MNTOPTS,$MODE,serverino,acl ;; esac |