Fix 2 bugs: Stats startup after backup

Server java version path bug
This commit is contained in:
Andrew 2022-06-23 19:34:27 -04:00
parent 81bc228e40
commit b4749f8caf

View File

@ -242,7 +242,7 @@ class ServerInstance:
"Replacing with full java path."
)
# Checks for Oracle Java. Only Oracle Java's helper will cause a re-exec.
if "/Oracle/Java/" in str(shutil.which("java")):
if "/Oracle/Java/" in str(self.helper.wtol_path(shutil.which("java"))):
logger.info(
"Oracle Java detected. Changing start command to avoid re-exec."
)
@ -938,7 +938,7 @@ class ServerInstance:
logger.info(
"Backup complete. User had shutdown preference. Starting server."
)
self.start_server(HelperUsers.get_user_id_by_name("system"))
self.run_threaded_server(HelperUsers.get_user_id_by_name("system"))
time.sleep(3)
self.last_backup_failed = False
except: