Daniel Gibbs 1 год назад
Родитель
Сommit
7c0199f225
4 измененных файлов с 23 добавлено и 3 удалено
  1. 1 1
      lgsm/modules/check_deps.sh
  2. 1 1
      lgsm/modules/command_start.sh
  3. 1 1
      lgsm/modules/command_stop.sh
  4. 20 0
      lgsm/modules/core_messages.sh

+ 1 - 1
lgsm/modules/check_deps.sh

@@ -227,7 +227,7 @@ fn_install_missing_deps() {
 
 
 	else
 	else
 		if [ "${commandname}" == "INSTALL" ]; then
 		if [ "${commandname}" == "INSTALL" ]; then
-			fn_print_information_nl "Required dependencies already installed."
+			fn_print_skip2_nl "Required dependencies already installed."
 			fn_script_log_info "Required dependencies already installed."
 			fn_script_log_info "Required dependencies already installed."
 		fi
 		fi
 	fi
 	fi

+ 1 - 1
lgsm/modules/command_start.sh

@@ -176,7 +176,7 @@ check.sh
 # If the server already started dont start again.
 # If the server already started dont start again.
 if [ "${status}" != "0" ]; then
 if [ "${status}" != "0" ]; then
 	fn_print_dots "${servername}"
 	fn_print_dots "${servername}"
-	fn_print_info_nl "${servername} is already running"
+	fn_print_skip_nl "${servername} is already running"
 	fn_script_log_error "${servername} is already running"
 	fn_script_log_error "${servername} is already running"
 	if [ -z "${exitbypass}" ]; then
 	if [ -z "${exitbypass}" ]; then
 		# Remove starting lockfile when command ends.
 		# Remove starting lockfile when command ends.

+ 1 - 1
lgsm/modules/command_stop.sh

@@ -370,7 +370,7 @@ fn_stop_tmux() {
 # Checks if the server is already stopped.
 # Checks if the server is already stopped.
 fn_stop_pre_check() {
 fn_stop_pre_check() {
 	if [ "${status}" == "0" ]; then
 	if [ "${status}" == "0" ]; then
-		fn_print_info_nl "${servername} is already stopped"
+		fn_print_skip_nl "${servername} is already stopped"
 		fn_script_log_info "${servername} is already stopped"
 		fn_script_log_info "${servername} is already stopped"
 	else
 	else
 		# Select graceful shutdown.
 		# Select graceful shutdown.

+ 20 - 0
lgsm/modules/core_messages.sh

@@ -198,6 +198,15 @@ fn_print_info_nl() {
 	fn_print_message_nl "INFO" "${cyan}" "$*"
 	fn_print_message_nl "INFO" "${cyan}" "$*"
 }
 }
 
 
+# [ SKIP ]
+fn_print_skip() {
+	fn_print_message "SKIP" "${cyan}" "$*"
+}
+
+fn_print_SKIP_nl() {
+	fn_print_message_nl "SKIP" "${cyan}" "$*"
+}
+
 # [ START ]
 # [ START ]
 fn_print_start() {
 fn_print_start() {
 	fn_print_message "START" "${lightgreen}" "$*"
 	fn_print_message "START" "${lightgreen}" "$*"
@@ -283,6 +292,17 @@ fn_print_information_nl() {
 	fn_sleep_time
 	fn_sleep_time
 }
 }
 
 
+# Skip!
+fn_print_skip2() {
+	echo -en "${cyan}Skip!${default} $*${default}"
+	fn_sleep_time
+}
+
+fn_print_skip2_nl() {
+	echo -e "${cyan}Skip!${default} $*${default}"
+	fn_sleep_time
+}
+
 # Y/N Prompt
 # Y/N Prompt
 fn_prompt_yn() {
 fn_prompt_yn() {
 	echo -e ""
 	echo -e ""