mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 17:55:29 +01:00
Fix 2 bugs: Stats startup after backup
Server java version path bug
This commit is contained in:
parent
81bc228e40
commit
b4749f8caf
@ -242,7 +242,7 @@ class ServerInstance:
|
|||||||
"Replacing with full java path."
|
"Replacing with full java path."
|
||||||
)
|
)
|
||||||
# Checks for Oracle Java. Only Oracle Java's helper will cause a re-exec.
|
# 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(
|
logger.info(
|
||||||
"Oracle Java detected. Changing start command to avoid re-exec."
|
"Oracle Java detected. Changing start command to avoid re-exec."
|
||||||
)
|
)
|
||||||
@ -938,7 +938,7 @@ class ServerInstance:
|
|||||||
logger.info(
|
logger.info(
|
||||||
"Backup complete. User had shutdown preference. Starting server."
|
"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)
|
time.sleep(3)
|
||||||
self.last_backup_failed = False
|
self.last_backup_failed = False
|
||||||
except:
|
except:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user