From fa2ce6a3eee831f6c6ab4c08e1facda769d6faac Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 26 Dec 2021 01:06:51 -0600 Subject: [PATCH] Make start_server use standard config_backups instead of its own ad-hoc solution --- Scripts/7D2D-Manage.bash | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Scripts/7D2D-Manage.bash b/Scripts/7D2D-Manage.bash index cae0a0f..ea09ca4 100644 --- a/Scripts/7D2D-Manage.bash +++ b/Scripts/7D2D-Manage.bash @@ -256,12 +256,7 @@ start_server() { printf "\n" >> "temp-serverconfig.xml" fi - local backups_dir - local backup_file - backups_dir="${server_directory}/Config-Backups" - backup_file="${backups_dir}/serverconfig.xml-$(date +%s)" - mkdir -p "${backups_dir}" - cp "${server_config}" "${backup_file}" + backup_configs "${server_directory}" mv "temp-serverconfig.xml" "${server_config}" log "info" "Starting $(important "${server_name}") located at $(important "${server_directory}") on port $(important "${server_port}")"