Browse Source

revert to exitbypass only

pull/914/head
Daniel Gibbs 9 years ago
parent
commit
efaa25293e
  1. 13
      lgsm/functions/command_console.sh

13
lgsm/functions/command_console.sh

@ -9,13 +9,6 @@ lgsm_version="210516"
local modulename="Console" local modulename="Console"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
fn_console_access(){
fn_print_ok_nl "Starting"
fn_script_log_info "Accessed"
sleep 1
tmux attach-session -t ${servicename}
}
check.sh check.sh
echo "" echo ""
echo "${gamename} Console" echo "${gamename} Console"
@ -36,7 +29,10 @@ fn_print_dots "Starting"
sleep 1 sleep 1
check_status.sh check_status.sh
if [ "${status}" != "0" ]; then if [ "${status}" != "0" ]; then
fn_console_access fn_print_ok_nl "Starting"
fn_script_log_info "Accessed"
sleep 1
tmux attach-session -t ${servicename}
else else
fn_print_fail_nl "Server not running" fn_print_fail_nl "Server not running"
fn_script_log_error "Failed to access: Server not running" fn_script_log_error "Failed to access: Server not running"
@ -49,6 +45,5 @@ else
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
done done
fn_console_access
fi fi
core_exit.sh core_exit.sh

Loading…
Cancel
Save