Просмотр исходного кода

feat: improve console and post details commands

- Updated the console command to display a link in italics to the documentation.
- Updated the post details command to display the URL in italics for support.
- Renamed "Donation options" to "Sponsorship options" in the sponsor command.
- Added Minecraft as an example of a game with query enabled in info messages.

Closes #123
Daniel Gibbs 2 лет назад
Родитель
Сommit
cd07132636

+ 1 - 1
lgsm/modules/command_console.sh

@@ -31,8 +31,8 @@ fi
 echo ""
 echo ""
 fn_print_information_nl "Press \"CTRL+b\" then \"d\" to exit console."
 fn_print_information_nl "Press \"CTRL+b\" then \"d\" to exit console."
 fn_print_warning_nl "Do NOT press CTRL+c to exit."
 fn_print_warning_nl "Do NOT press CTRL+c to exit."
-echo -e "* https://docs.linuxgsm.com/commands/console"
 echo -e ""
 echo -e ""
+echo -e "${italic}https://docs.linuxgsm.com/commands/console${default}"
 if ! fn_prompt_yn "Continue?" Y; then
 if ! fn_prompt_yn "Continue?" Y; then
 	exitcode=0
 	exitcode=0
 	core_exit.sh
 	core_exit.sh

+ 1 - 1
lgsm/modules/command_postdetails.sh

@@ -68,7 +68,7 @@ pdurl="${link}"
 if [ "${firstcommandname}" == "POST-DETAILS" ]; then
 if [ "${firstcommandname}" == "POST-DETAILS" ]; then
 	echo -e ""
 	echo -e ""
 	echo -e "Please share the following url for support: "
 	echo -e "Please share the following url for support: "
-	echo -e "${pdurl}"
+	echo -e "${italic}${pdurl}${default}"
 fi
 fi
 fn_script_log_info "${pdurl}"
 fn_script_log_info "${pdurl}"
 alerturl="${pdurl}"
 alerturl="${pdurl}"

+ 1 - 1
lgsm/modules/core_getopt.sh

@@ -22,7 +22,7 @@ cmd_update_linuxgsm=("ul;update-lgsm;uf;update-modules" "command_update_linuxgsm
 cmd_test_alert=("ta;test-alert" "command_test_alert.sh" "Send a test alert.")
 cmd_test_alert=("ta;test-alert" "command_test_alert.sh" "Send a test alert.")
 cmd_monitor=("m;monitor" "command_monitor.sh" "Check server status and restart if crashed.")
 cmd_monitor=("m;monitor" "command_monitor.sh" "Check server status and restart if crashed.")
 cmd_skeleton=("sk;skeleton" "command_skeleton.sh" "Create a skeleton directory.")
 cmd_skeleton=("sk;skeleton" "command_skeleton.sh" "Create a skeleton directory.")
-cmd_sponsor=("s;sponsor" "command_sponsor.sh" "Donation options.")
+cmd_sponsor=("s;sponsor" "command_sponsor.sh" "Sponsorship options.")
 cmd_send=("sd;send" "command_send.sh" "Send command to game server console.")
 cmd_send=("sd;send" "command_send.sh" "Send command to game server console.")
 # Console servers only.
 # Console servers only.
 cmd_console=("c;console" "command_console.sh" "Access server console.")
 cmd_console=("c;console" "command_console.sh" "Access server console.")

+ 1 - 1
lgsm/modules/info_messages.sh

@@ -286,7 +286,7 @@ fn_info_message_gameserver() {
 			echo -e "${lightblue}Server password:\t${default}${serverpassword}"
 			echo -e "${lightblue}Server password:\t${default}${serverpassword}"
 		fi
 		fi
 
 
-		# Query enabled (Starbound)
+		# Query enabled (Starbound, Minecraft)
 		if [ -n "${queryenabled}" ]; then
 		if [ -n "${queryenabled}" ]; then
 			echo -e "${lightblue}Query enabled:\t${default}${queryenabled}"
 			echo -e "${lightblue}Query enabled:\t${default}${queryenabled}"
 		fi
 		fi