summaryrefslogtreecommitdiffstats
path: root/server/bin/setclientlive
diff options
context:
space:
mode:
Diffstat (limited to 'server/bin/setclientlive')
-rwxr-xr-xserver/bin/setclientlive4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/bin/setclientlive b/server/bin/setclientlive
index 0424e605..64eedabf 100755
--- a/server/bin/setclientlive
+++ b/server/bin/setclientlive
@@ -17,7 +17,7 @@
PROG="$(basename "$0")"
OPENGNSYS=${OPENGNSYS:-"/opt/opengnsys"}
PATH=$PATH:$OPENGNSYS/bin
-SERVERCONF=$OPENGNSYS/etc/ogserver.cfg
+SERVERCONF=$OPENGNSYS/etc/ogserver.json
TFTPDIR=$OPENGNSYS/tftpboot
LOGFILE=$OPENGNSYS/log/opengnsys.log
@@ -28,7 +28,7 @@ source $OPENGNSYS/lib/ogfunctions.sh || exit 1
[ "$*" == "version" ] && version
[ $# -eq 2 ] || 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"
case "$1" in
[0-9]*) DIR=$(oglivecli search $1 2>/dev/null) ;;