Make start_server use standard config_backups instead of its own ad-hoc solution
This commit is contained in:
parent
e1224b32e4
commit
fa2ce6a3ee
@ -256,12 +256,7 @@ start_server() {
|
||||
printf "</ServerSettings>\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}")"
|
||||
|
Loading…
Reference in New Issue
Block a user