summaryrefslogtreecommitdiffstats
path: root/admin/Interface/getConfiguration
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2015-11-11 08:54:42 +0000
committerramon <ramongomez@us.es>2015-11-11 08:54:42 +0000
commit1ccd273f9af0ed9bad2b1647685902efa7ebd6ba (patch)
tree055d3c773beddddc207384f2b5b93e196be7f5b3 /admin/Interface/getConfiguration
parent89cb5a5879bcc227bbaf5d90418114cc019511f9 (diff)
#726: Modificada funciĆ³n {{{ogEcho}}} para no incluir el fichero de log del cliente en mensajes que incluyen nivel de incidencia si la variable {{{DEBUG="no"}}}; probar esta funcionalidad en el script de interfaz web {{{getConfiguration}}}, para obtener la configuraciĆ³n de discos.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4729 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/Interface/getConfiguration')
-rwxr-xr-xadmin/Interface/getConfiguration6
1 files changed, 6 insertions, 0 deletions
diff --git a/admin/Interface/getConfiguration b/admin/Interface/getConfiguration
index 88accda0..db7b0a0d 100755
--- a/admin/Interface/getConfiguration
+++ b/admin/Interface/getConfiguration
@@ -7,6 +7,9 @@
#_______________________________________________________________________________________________________________________________
+# No registrar los errores.
+export DEBUG="no"
+
cfg=""
disks=$(ogDiskToDev | wc -w)
for ((dsk=1; dsk<=$disks; dsk++)); do
@@ -67,3 +70,6 @@ awk '{ n=split($0,sep,";");
}
}' $cfgfile
+# Volver a registrar los errores.
+unset DEBUG
+