(BUG) Rename OG_SCRIPT_PATH to OG_PATH

more_events
Alvaro Neira Ayuso 2020-02-04 14:19:03 +01:00
parent 2934773d88
commit 38056d78a7
1 changed files with 2 additions and 2 deletions

View File

@ -38,13 +38,13 @@ def parseGetConf(out):
def poweroff():
if os.path.exists('/scripts/oginit'):
subprocess.call('source ' + OG_SCRIPT_PATH + 'etc/preinit/loadenviron.sh; ' + OG_SCRIPT_PATH + 'scripts/poweroff', shell=True)
subprocess.call('source ' + OG_PATH + 'etc/preinit/loadenviron.sh; ' + OG_PATH + 'scripts/poweroff', shell=True)
else:
subprocess.call(['/sbin/poweroff'])
def reboot():
if os.path.exists('/scripts/oginit'):
subprocess.call('source ' + OG_SCRIPT_PATH + 'etc/preinit/loadenviron.sh; ' + OG_SCRIPT_PATH + 'scripts/reboot', shell=True)
subprocess.call('source ' + OG_PATH + 'etc/preinit/loadenviron.sh; ' + OG_PATH + 'scripts/reboot', shell=True)
else:
subprocess.call(['/sbin/reboot'])