Browse Source

messages

pull/914/head
Daniel Gibbs 9 years ago
parent
commit
14e9bcbb4d
  1. 8
      lgsm/functions/command_console.sh

8
lgsm/functions/command_console.sh

@ -25,14 +25,16 @@ while true; do
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
done done
fn_print_dots "Starting" fn_print_dots "Accessing console"
sleep 1 sleep 1
check_status.sh check_status.sh
if [ "${status}" != "0" ]; then if [ "${status}" != "0" ]; then
fn_print_ok_nl "Starting" fn_print_ok_nl "Accessing console"
fn_script_log_info "Accessed" fn_script_log_info "Console accessed"
sleep 1 sleep 1
tmux attach-session -t ${servicename} tmux attach-session -t ${servicename}
fn_print_ok_nl "Console closed"
fn_script_log_info "Console closed"
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"

Loading…
Cancel
Save