Browse Source

New menu look and more functions

pull/890/head
zunnu 9 years ago
committed by GitHub
parent
commit
3646c4a615
  1. 113
      lgsm/functions/core_getopt.sh

113
lgsm/functions/core_getopt.sh

@ -43,29 +43,104 @@ case "$getopt" in
fn_autoinstall;;
dd|depsdetect)
command_dev_detect_deps.sh;;
rcd|restart-countdown)
command_restart_countdown.sh
countdown "RESTART";;
rcdf|restart-countdown-fast)
command_restart_countdown.sh
countdown "fast";;
sd|shutdown)
command_shutdown.sh
shutdown "SHUTDOWN";;
sdf|shutdown-fast)
command_shutdown.sh
shutdown "fast";;
uc|update-countdown)
command_update_countdown.sh
update_countdown_timer "UPDATE";;
ucf|update-countdown-fast)
command_update_countdown.sh
update_countdown_timer "fast";;
*)
echo "Usage: $0 [option]"
# echo colors
normal=`echo -en "\e[0m"`
red=`echo -en "\e[31m"`
green=`echo -en "\e[32m"`
blue=`echo -en "\e[34m"`
lightred=`echo -en "\e[91m"`
lightgreen=`echo -en "\e[92m"`
cyan=`echo -en "\e[96m"`
purple=`echo -en "\e[95m"`
echo ""
echo "${gamename} - Linux Game Server Manager - Version ${version}"
echo "https://gameservermanagers.com/${selfname}"
echo -e ""
echo -e "\e[93mCommands\e[0m"
{
echo -e "\e[34mstart\t\e[0mst |Start the server."
echo -e "\e[34mstop\t\e[0msp |Stop the server."
echo -e "\e[34mrestart\t\e[0mr |Restart the server."
echo -e "\e[34mupdate\t\e[0mu |Checks and applies updates from SteamCMD."
echo -e "\e[34mforce-update\t\e[0mfu |Bypasses the check and applies updates from SteamCMD."
echo -e "\e[34mupdate-functions\t\e[0muf |Removes all functions so latest can be downloaded."
echo -e "\e[34mvalidate\t\e[0mv |Validate server files with SteamCMD."
echo -e "\e[34mmonitor\t\e[0mm |Checks that the server is running."
echo -e "\e[34mtest-alert\t\e[0mta |Sends test alert."
echo -e "\e[34mdetails\t\e[0mdt |Displays useful infomation about the server."
echo -e "\e[34mbackup\t\e[0mb |Create archive of the server."
echo -e "\e[34mconsole\t\e[0mc |Console allows you to access the live view of a server."
echo -e "\e[34mdebug\t\e[0md |See the output of the server directly to your terminal."
echo -e "\e[34minstall\t\e[0mi |Install the server."
echo -e "\e[34mauto-install\t\e[0mai |Install the server, without prompts."
} | column -s $'\t' -t
echo " $0 ${cyan}start|st ${normal}"
echo " - start the server."
echo ""
echo " $0 ${red}stop|sp ${normal}"
echo " - Stop the server."
echo ""
echo " $0 ${red}shutdown|sd ${normal}"
echo " - broadcasts 1 minute countdown and then stops the server."
echo ""
echo " $0 ${red}shutdown-fast|sdf ${normal}"
echo " - broadcasts 10 second countdown and then stops the server."
echo ""
echo " $0 ${green}restart|r ${normal}"
echo " - Restart the server."
echo ""
echo " $0 ${green}restart-countdown|rcd ${normal}"
echo " - broadcasts 1 minute countdown and then restarts the server"
echo ""
echo " $0 ${green}restart-countdown-fast|rcdf ${normal}"
echo " - broadcasts 10 second countdown and then restarts the server"
echo ""
echo " $0 ${cyan}update|u ${normal}"
echo " - Checks and applies updates from SteamCMD."
echo ""
echo " $0 ${cyan}update-countdown|uc ${normal}"
echo " - broadcasts 1 minute countdown and then updates and restart's the server"
echo ""
echo " $0 ${cyan}update-countdown-fast|ucf ${normal}"
echo " - broadcasts 10 second countdown and then updates and restart's the server"
echo ""
echo " $0 ${cyan}force-update|fu ${normal}"
echo " - Bypasses the check and applies updates from SteamCMD."
echo ""
echo " $0 ${cyan}update-functions|uf ${normal}"
echo " - Removes all functions so latest can be downloaded."
echo ""
echo " $0 ${cyan}validate|v ${normal}"
echo " - Validate server files with SteamCMD. "
echo ""
echo " $0 ${cyan}monitor|m ${normal}"
echo " - Checks that the server is running. "
echo ""
echo " $0 ${cyan}details|dt ${normal}"
echo " - Displays useful infomation about the server "
echo ""
echo " $0 ${cyan}backup|b ${normal}"
echo " - Create archive of the server. "
echo ""
echo " $0 ${cyan}console|c ${normal}"
echo " - Console allows you to access the live view of a server. "
echo ""
echo " $0 ${cyan}debug|d ${normal}"
echo " - See the output of the server directly to your terminal. "
echo ""
echo " $0 ${lightgreen}install|i ${normal}"
echo " - Install the server. "
echo ""
echo " $0 ${lightgreen}auto-install|ai ${normal}"
echo " - Install the server, without prompts. "
echo ""
echo "$normal"
esac
exit
}

Loading…
Cancel
Save