From 38b6d77561c87cb427b21b811ce10208f2eb5b1a Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Wed, 13 May 2020 14:10:01 +0200 Subject: Switch config file to json This patch makes configuration parsing easier as well as making the full configuration available in many subclasses. --- cfg/ogclient.cfg | 15 --------------- cfg/ogclient.json | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 15 deletions(-) delete mode 100644 cfg/ogclient.cfg create mode 100644 cfg/ogclient.json (limited to 'cfg') diff --git a/cfg/ogclient.cfg b/cfg/ogclient.cfg deleted file mode 100644 index 634382d..0000000 --- a/cfg/ogclient.cfg +++ /dev/null @@ -1,15 +0,0 @@ -[opengnsys] -ip=127.0.0.1 -url=https://127.0.0.1/opengnsys/varios/menubrowser.php -url_log=http://localhost/cgi-bin/httpd-log.sh -port=8889 -# Log Level, if ommited, will be set to INFO -log=DEBUG -# Supported modes are 'virtual' and 'linux' -mode=linux - -# User and password for all samba repositories. This user requires read and -# write permission. -[samba] -user=opengnsys -pass=og diff --git a/cfg/ogclient.json b/cfg/ogclient.json new file mode 100644 index 0000000..047ec6d --- /dev/null +++ b/cfg/ogclient.json @@ -0,0 +1,19 @@ +{ + "opengnsys": { + "ip": "127.0.0.1", + "port": 8889, + "log": "DEBUG", + "mode": "linux", + "url": "https://127.0.0.1/opengnsys/varios/menubrowser.php", + "url_log": "http://localhost/cgi-bin/httpd-log.sh" + }, + "samba": { + "activate": true + "user": "opengnsys", + "pass": "og" + }, + "vnc": { + "activate": true, + "pass": "ogvnc" + } +} -- cgit v1.2.3-18-g5258