Browse Source

ui

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

18
lgsm/functions/command_wipe.sh

@ -189,9 +189,10 @@ fn_print_dots ""
check.sh
# Check if there is something to wipe.
fn_wipe_warning
check_status.sh
if [ "${status}" != "0" ]; then
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
fn_wipe_warning
check_status.sh
if [ "${status}" != "0" ]; then
fn_stop_warning
exitbypass=1
command_stop.sh
@ -200,10 +201,13 @@ if [ "${status}" != "0" ]; then
exitbypass=1
command_start.sh
fn_firstcommand_reset
else
else
fn_wipe_server_files
fi
fn_print_complete_nl "Wiping ${selfname}"
fn_script_log_pass "Wiping ${selfname}"
else
fn_print_ok_nl "Wipe not required"
fn_script_log_pass "Wipe not required"
fi
fn_print_complete_nl "Wiping ${selfname}"
fn_script_log_pass "Wiping ${selfname}"
core_exit.sh

Loading…
Cancel
Save