From 67d5723c075f8e21df45e43ad8484630912e1f8b Mon Sep 17 00:00:00 2001 From: Andrew McManus Date: Mon, 26 Jul 2021 21:14:36 -0400 Subject: [PATCH] Re-enabled backups for updating jars. --- app/classes/shared/server.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/classes/shared/server.py b/app/classes/shared/server.py index d4dc5e9a..348c149f 100644 --- a/app/classes/shared/server.py +++ b/app/classes/shared/server.py @@ -396,8 +396,7 @@ class Server: def a_jar_update(self): wasStarted = "-1" - #self.backup_server() - time.sleep(5) + self.backup_server() #checks if server is running. Calls shutdown if it is running. if self.check_running(): wasStarted = True @@ -436,7 +435,6 @@ class Server: db_helper.set_update(self.server_id, True) pass logger.info("Executable updated successfully. Starting Server") - time.sleep(5) db_helper.set_update(self.server_id, False) if len(websocket_helper.clients) > 0: @@ -447,7 +445,6 @@ class Server: 'server_id': self.server_id, 'wasRunning': wasStarted }) - time.sleep(3) websocket_helper.broadcast('notification', "Executable update finished for "+self.name) db_helper.add_to_audit_log_raw('Alert', '-1', self.server_id, "Executable update finished for "+self.name, self.settings['server_ip'])