Daniel Gibbs пре 10 година
родитељ
комит
14e9bcbb4d
1 измењених фајлова са 5 додато и 3 уклоњено
  1. 5 3
      lgsm/functions/command_console.sh

+ 5 - 3
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_script_log_info "Accessed"
+	fn_print_ok_nl "Accessing console"
+	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"