Browse Source

ui

pull/2972/head
Daniel Gibbs 5 years ago
parent
commit
086713fd51
  1. 34
      lgsm/functions/command_wipe.sh

34
lgsm/functions/command_wipe.sh

@ -189,21 +189,25 @@ fn_print_dots ""
check.sh check.sh
# Check if there is something to wipe. # Check if there is something to wipe.
fn_wipe_warning if [ -d "${serveridentitydir}/storage" ]||[ -d "${serveridentitydir}/user" ]||[ -n "$(find "${serveridentitydir}" -type f -name "proceduralmap*.sav")" ]||[ -n "$(find "${serveridentitydir}" -type f -name "barren*.sav")" ]||[ -n "$(find "${serveridentitydir}" -type f -name "Log.*.txt")" ]||[ -n "$(find "${serveridentitydir}" -type f -name "player.deaths.*.db")" ]||[ -n "$(find "${serveridentitydir}" -type f -name "player.blueprints.*.db")" ]||[ -n "$(find "${serveridentitydir}" -type f -name "sv.files.*.db")" ]; then
check_status.sh fn_wipe_warning
if [ "${status}" != "0" ]; then check_status.sh
fn_stop_warning if [ "${status}" != "0" ]; then
exitbypass=1 fn_stop_warning
command_stop.sh exitbypass=1
fn_firstcommand_reset command_stop.sh
fn_wipe_server_files fn_firstcommand_reset
exitbypass=1 fn_wipe_server_files
command_start.sh exitbypass=1
fn_firstcommand_reset command_start.sh
fn_firstcommand_reset
else
fn_wipe_server_files
fi
fn_print_complete_nl "Wiping ${selfname}"
fn_script_log_pass "Wiping ${selfname}"
else else
fn_wipe_server_files fn_print_ok_nl "Wipe not required"
fn_script_log_pass "Wipe not required"
fi fi
fn_print_complete_nl "Wiping ${selfname}"
fn_script_log_pass "Wiping ${selfname}"
core_exit.sh core_exit.sh

Loading…
Cancel
Save