mirror of https://git.48k.eu/ogclient
Rename 'linux' mode to 'live' mode
'linux' represents ogLive mode that is the reason for the rename.more_events
parent
d7b7b0b175
commit
1377aceec2
|
@ -3,7 +3,7 @@
|
||||||
"ip": "127.0.0.1",
|
"ip": "127.0.0.1",
|
||||||
"port": 8889,
|
"port": 8889,
|
||||||
"log": "DEBUG",
|
"log": "DEBUG",
|
||||||
"mode": "linux",
|
"mode": "live",
|
||||||
"url": "https://127.0.0.1/opengnsys/varios/menubrowser.php",
|
"url": "https://127.0.0.1/opengnsys/varios/menubrowser.php",
|
||||||
"url_log": "http://localhost/cgi-bin/httpd-log.sh"
|
"url_log": "http://localhost/cgi-bin/httpd-log.sh"
|
||||||
},
|
},
|
||||||
|
|
2
main.py
2
main.py
|
@ -25,7 +25,7 @@ def main():
|
||||||
|
|
||||||
MODE = CONFIG['opengnsys']['mode']
|
MODE = CONFIG['opengnsys']['mode']
|
||||||
URL = CONFIG['opengnsys']['url']
|
URL = CONFIG['opengnsys']['url']
|
||||||
if MODE == 'linux':
|
if MODE == 'live':
|
||||||
proc = subprocess.Popen(["browser", "-qws", URL])
|
proc = subprocess.Popen(["browser", "-qws", URL])
|
||||||
|
|
||||||
client = ogClient(config=CONFIG)
|
client = ogClient(config=CONFIG)
|
||||||
|
|
|
@ -30,7 +30,7 @@ class ogClient:
|
||||||
self.CONFIG = config
|
self.CONFIG = config
|
||||||
|
|
||||||
self.mode = self.CONFIG['opengnsys']['mode']
|
self.mode = self.CONFIG['opengnsys']['mode']
|
||||||
if self.mode not in {'virtual', 'linux'}:
|
if self.mode not in {'virtual', 'live'}:
|
||||||
raise ValueError('Mode not supported.')
|
raise ValueError('Mode not supported.')
|
||||||
|
|
||||||
if self.CONFIG['samba']['activate']:
|
if self.CONFIG['samba']['activate']:
|
||||||
|
|
|
@ -238,7 +238,7 @@ class ogRest():
|
||||||
self.mode = self.CONFIG['opengnsys']['mode']
|
self.mode = self.CONFIG['opengnsys']['mode']
|
||||||
self.samba_config = self.CONFIG['samba']
|
self.samba_config = self.CONFIG['samba']
|
||||||
|
|
||||||
if self.mode == 'linux':
|
if self.mode == 'live':
|
||||||
self.operations = OgLinuxOperations(self.CONFIG)
|
self.operations = OgLinuxOperations(self.CONFIG)
|
||||||
elif self.mode == 'virtual':
|
elif self.mode == 'virtual':
|
||||||
from src.virtual.ogOperations import \
|
from src.virtual.ogOperations import \
|
||||||
|
|
Loading…
Reference in New Issue