diff --git a/app/classes/web/server_handler.py b/app/classes/web/server_handler.py index 42f9cacd..1482200b 100644 --- a/app/classes/web/server_handler.py +++ b/app/classes/web/server_handler.py @@ -219,6 +219,7 @@ class ServerHandler(BaseHandler): new_server_log_file = str( Helpers.get_os_understandable_path(server_data.get("log_path")) ).replace(server_uuid, new_server_uuid) + backup_path = os.path.join(self.helper.backup_path, new_server_uuid) server_port = server_data.get("server_port") server_type = server_data.get("type") @@ -226,7 +227,7 @@ class ServerHandler(BaseHandler): new_server_name, new_server_uuid, new_server_path, - "", + backup_path, new_server_command, new_executable, new_server_log_file, diff --git a/app/frontend/templates/panel/dashboard.html b/app/frontend/templates/panel/dashboard.html index 9f213905..0d091aef 100644 --- a/app/frontend/templates/panel/dashboard.html +++ b/app/frontend/templates/panel/dashboard.html @@ -588,11 +588,15 @@ $(".clone_button").click(function () { server_id = $(this).attr("data-id"); send_command(server_id, 'clone_server'); - bootbox.alert({ + bootbox.dialog({ backdrop: true, title: '{% raw translate("dashboard", "sendingCommand", data["lang"]) %}', - message: '