summaryrefslogtreecommitdiffstats
path: root/server/bin/listclientmode
diff options
context:
space:
mode:
Diffstat (limited to 'server/bin/listclientmode')
-rwxr-xr-xserver/bin/listclientmode6
1 files changed, 2 insertions, 4 deletions
diff --git a/server/bin/listclientmode b/server/bin/listclientmode
index d4bac228..656ece99 100755
--- a/server/bin/listclientmode
+++ b/server/bin/listclientmode
@@ -15,7 +15,7 @@
# Variables.
OPENGNSYS=${OPENGNSYS:-"/opt/opengnsys"}
-SERVERCONF=$OPENGNSYS/etc/ogserver.cfg
+SERVERCONF=$OPENGNSYS/etc/ogserver.json
TMPLDIR=$OPENGNSYS/tftpboot/menu.lst/templates
source $OPENGNSYS/lib/ogfunctions.sh || exit 1
@@ -25,10 +25,8 @@ source $OPENGNSYS/lib/ogfunctions.sh || exit 1
[ "$*" == "version" ] && version
[ $# -eq 1 ] || raiseError usage
[ "$USER" != "root" ] && raiseError access "Need to be root"
-source $SERVERCONF 2>/dev/null || raiseError access "Sin acceso a fichero de configuración"
+source_json_config $SERVERCONF 2>/dev/null || raiseError access "Sin acceso a fichero de configuración"
-# Obtener datos de acceso a la Base de datos.
-source $SERVERCONF
# Sustituir caracteres ' por \' para evitar inyección SQL.
RESOURCE="${1//\'/\\\'}"
# Obtener nombre de ordenador individual o todos los de una aula e indicar su plantilla asociada.