|
@@ -41,7 +41,7 @@ case "${getopt}" in
|
|
|
command_install.sh;;
|
|
command_install.sh;;
|
|
|
ai|auto-install)
|
|
ai|auto-install)
|
|
|
fn_autoinstall;;
|
|
fn_autoinstall;;
|
|
|
- dd|depsdetect)
|
|
|
|
|
|
|
+ dd|deps-detect)
|
|
|
command_dev_detect_deps.sh;;
|
|
command_dev_detect_deps.sh;;
|
|
|
dg|detect-glibc)
|
|
dg|detect-glibc)
|
|
|
command_dev_detect_glibc.sh;;
|
|
command_dev_detect_glibc.sh;;
|
|
@@ -65,7 +65,7 @@ case "${getopt}" in
|
|
|
echo -e "${blue}validate\t${default}v |Validate server files with SteamCMD."
|
|
echo -e "${blue}validate\t${default}v |Validate server files with SteamCMD."
|
|
|
echo -e "${blue}monitor\t${default}m |Checks that the server is running."
|
|
echo -e "${blue}monitor\t${default}m |Checks that the server is running."
|
|
|
echo -e "${blue}test-alert\t${default}ta |Sends test alert."
|
|
echo -e "${blue}test-alert\t${default}ta |Sends test alert."
|
|
|
- echo -e "${blue}details\t${default}dt |Displays useful infomation about the server."
|
|
|
|
|
|
|
+ echo -e "${blue}details\t${default}dt |Displays useful information about the server."
|
|
|
echo -e "${blue}backup\t${default}b |Create archive of the server."
|
|
echo -e "${blue}backup\t${default}b |Create archive of the server."
|
|
|
echo -e "${blue}console\t${default}c |Console allows you to access the live view of a server."
|
|
echo -e "${blue}console\t${default}c |Console allows you to access the live view of a server."
|
|
|
echo -e "${blue}debug\t${default}d |See the output of the server directly to your terminal."
|
|
echo -e "${blue}debug\t${default}d |See the output of the server directly to your terminal."
|
|
@@ -103,7 +103,7 @@ case "${getopt}" in
|
|
|
command_install.sh;;
|
|
command_install.sh;;
|
|
|
ai|auto-install)
|
|
ai|auto-install)
|
|
|
fn_autoinstall;;
|
|
fn_autoinstall;;
|
|
|
- dd|depsdetect)
|
|
|
|
|
|
|
+ dd|deps-detect)
|
|
|
command_dev_detect_deps.sh;;
|
|
command_dev_detect_deps.sh;;
|
|
|
dg|detect-glibc)
|
|
dg|detect-glibc)
|
|
|
command_dev_detect_glibc.sh;;
|
|
command_dev_detect_glibc.sh;;
|
|
@@ -125,7 +125,7 @@ case "${getopt}" in
|
|
|
echo -e "${blue}update-functions\t${default}uf |Removes all functions so latest can be downloaded."
|
|
echo -e "${blue}update-functions\t${default}uf |Removes all functions so latest can be downloaded."
|
|
|
echo -e "${blue}monitor\t${default}m |Checks that the server is running."
|
|
echo -e "${blue}monitor\t${default}m |Checks that the server is running."
|
|
|
echo -e "${blue}test-alert\t${default}ta |Sends test alert."
|
|
echo -e "${blue}test-alert\t${default}ta |Sends test alert."
|
|
|
- echo -e "${blue}details\t${default}dt |Displays useful infomation about the server."
|
|
|
|
|
|
|
+ echo -e "${blue}details\t${default}dt |Displays useful information about the server."
|
|
|
echo -e "${blue}change-password\t${default}pw |Changes TS3 serveradmin password."
|
|
echo -e "${blue}change-password\t${default}pw |Changes TS3 serveradmin password."
|
|
|
echo -e "${blue}backup\t${default}b |Create archive of the server."
|
|
echo -e "${blue}backup\t${default}b |Create archive of the server."
|
|
|
echo -e "${blue}install\t${default}i |Install the server."
|
|
echo -e "${blue}install\t${default}i |Install the server."
|
|
@@ -134,6 +134,68 @@ case "${getopt}" in
|
|
|
esac
|
|
esac
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+fn_getopt_minecraft(){
|
|
|
|
|
+case "${getopt}" in
|
|
|
|
|
+ st|start)
|
|
|
|
|
+ command_start.sh;;
|
|
|
|
|
+ sp|stop)
|
|
|
|
|
+ command_stop.sh;;
|
|
|
|
|
+ r|restart)
|
|
|
|
|
+ command_restart.sh;;
|
|
|
|
|
+ u|update)
|
|
|
|
|
+ command_update.sh;;
|
|
|
|
|
+ uf|update-functions)
|
|
|
|
|
+ command_update_functions.sh;;
|
|
|
|
|
+ m|monitor)
|
|
|
|
|
+ command_monitor.sh;;
|
|
|
|
|
+ ta|test-alert)
|
|
|
|
|
+ command_test_alert.sh;;
|
|
|
|
|
+ dt|details)
|
|
|
|
|
+ command_details.sh;;
|
|
|
|
|
+ b|backup)
|
|
|
|
|
+ command_backup.sh;;
|
|
|
|
|
+ c|console)
|
|
|
|
|
+ command_console.sh;;
|
|
|
|
|
+ d|debug)
|
|
|
|
|
+ command_debug.sh;;
|
|
|
|
|
+ dev|dev-debug)
|
|
|
|
|
+ command_dev_debug.sh;;
|
|
|
|
|
+ i|install)
|
|
|
|
|
+ command_install.sh;;
|
|
|
|
|
+ ai|auto-install)
|
|
|
|
|
+ fn_autoinstall;;
|
|
|
|
|
+ dd|deps-detect)
|
|
|
|
|
+ command_dev_detect_deps.sh;;
|
|
|
|
|
+ dg|detect-glibc)
|
|
|
|
|
+ command_dev_detect_glibc.sh;;
|
|
|
|
|
+ *)
|
|
|
|
|
+ if [ -n "${getopt}" ]; then
|
|
|
|
|
+ echo -e "${red}Unknown command${default}: $0 ${getopt}"
|
|
|
|
|
+ exitcode=2
|
|
|
|
|
+ fi
|
|
|
|
|
+ echo "Usage: $0 [option]"
|
|
|
|
|
+ echo "${gamename} - Linux Game Server Manager - Version ${version}"
|
|
|
|
|
+ echo "https://gameservermanagers.com/${selfname}"
|
|
|
|
|
+ echo -e ""
|
|
|
|
|
+ echo -e "${lightyellow}Commands${default}"
|
|
|
|
|
+ {
|
|
|
|
|
+ echo -e "${blue}start\t${default}st |Start the server."
|
|
|
|
|
+ echo -e "${blue}stop\t${default}sp |Stop the server."
|
|
|
|
|
+ echo -e "${blue}restart\t${default}r |Restart the server."
|
|
|
|
|
+ echo -e "${blue}update\t${default}u |Checks and applies updates from mojang.com."
|
|
|
|
|
+ echo -e "${blue}update-functions\t${default}uf |Removes all functions so latest can be downloaded."
|
|
|
|
|
+ echo -e "${blue}monitor\t${default}m |Checks that the server is running."
|
|
|
|
|
+ echo -e "${blue}test-alert\t${default}ta |Sends test alert."
|
|
|
|
|
+ echo -e "${blue}details\t${default}dt |Displays useful infomation about the server."
|
|
|
|
|
+ echo -e "${blue}backup\t${default}b |Create archive of the server."
|
|
|
|
|
+ echo -e "${blue}console\t${default}c |Console allows you to access the live view of a server."
|
|
|
|
|
+ echo -e "${blue}debug\t${default}d |See the output of the server directly to your terminal."
|
|
|
|
|
+ echo -e "${blue}install\t${default}i |Install the server."
|
|
|
|
|
+ echo -e "${blue}auto-install\t${default}ai |Install the server, without prompts."
|
|
|
|
|
+ } | column -s $'\t' -t
|
|
|
|
|
+ esac
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
fn_getopt_mumble(){
|
|
fn_getopt_mumble(){
|
|
|
case "${getopt}" in
|
|
case "${getopt}" in
|
|
|
st|start)
|
|
st|start)
|
|
@@ -158,7 +220,7 @@ case "${getopt}" in
|
|
|
command_dev_debug.sh;;
|
|
command_dev_debug.sh;;
|
|
|
i|install)
|
|
i|install)
|
|
|
command_install.sh;;
|
|
command_install.sh;;
|
|
|
- dd|depsdetect)
|
|
|
|
|
|
|
+ dd|deps-detect)
|
|
|
command_dev_detect_deps.sh;;
|
|
command_dev_detect_deps.sh;;
|
|
|
dg|detect-glibc)
|
|
dg|detect-glibc)
|
|
|
command_dev_detect_glibc.sh;;
|
|
command_dev_detect_glibc.sh;;
|
|
@@ -180,7 +242,7 @@ case "${getopt}" in
|
|
|
echo -e "${blue}update-functions\t${default}uf |Removes all functions so latest can be downloaded."
|
|
echo -e "${blue}update-functions\t${default}uf |Removes all functions so latest can be downloaded."
|
|
|
echo -e "${blue}monitor\t${default}m |Checks that the server is running."
|
|
echo -e "${blue}monitor\t${default}m |Checks that the server is running."
|
|
|
echo -e "${blue}test-alert\t${default}ta |Sends test alert."
|
|
echo -e "${blue}test-alert\t${default}ta |Sends test alert."
|
|
|
- echo -e "${blue}details\t${default}dt |Displays useful infomation about the server."
|
|
|
|
|
|
|
+ echo -e "${blue}details\t${default}dt |Displays useful information about the server."
|
|
|
echo -e "${blue}backup\t${default}b |Create archive of the server."
|
|
echo -e "${blue}backup\t${default}b |Create archive of the server."
|
|
|
echo -e "${blue}install\t${default}i |Install the server."
|
|
echo -e "${blue}install\t${default}i |Install the server."
|
|
|
} | column -s $'\t' -t
|
|
} | column -s $'\t' -t
|
|
@@ -222,7 +284,7 @@ case "${getopt}" in
|
|
|
command_install.sh;;
|
|
command_install.sh;;
|
|
|
ai|auto-install)
|
|
ai|auto-install)
|
|
|
fn_autoinstall;;
|
|
fn_autoinstall;;
|
|
|
- dd|depsdetect)
|
|
|
|
|
|
|
+ dd|deps-detect)
|
|
|
command_dev_detect_deps.sh;;
|
|
command_dev_detect_deps.sh;;
|
|
|
dg|detect-glibc)
|
|
dg|detect-glibc)
|
|
|
command_dev_detect_glibc.sh;;
|
|
command_dev_detect_glibc.sh;;
|
|
@@ -248,7 +310,7 @@ case "${getopt}" in
|
|
|
echo -e "${blue}validate\t${default}v |Validate server files with SteamCMD."
|
|
echo -e "${blue}validate\t${default}v |Validate server files with SteamCMD."
|
|
|
echo -e "${blue}monitor\t${default}m |Checks that the server is running."
|
|
echo -e "${blue}monitor\t${default}m |Checks that the server is running."
|
|
|
echo -e "${blue}test-alert\t${default}ta |Sends test alert."
|
|
echo -e "${blue}test-alert\t${default}ta |Sends test alert."
|
|
|
- echo -e "${blue}details\t${default}dt |Displays useful infomation about the server."
|
|
|
|
|
|
|
+ echo -e "${blue}details\t${default}dt |Displays useful information about the server."
|
|
|
echo -e "${blue}backup\t${default}b |Create archive of the server."
|
|
echo -e "${blue}backup\t${default}b |Create archive of the server."
|
|
|
echo -e "${blue}console\t${default}c |Console allows you to access the live view of a server."
|
|
echo -e "${blue}console\t${default}c |Console allows you to access the live view of a server."
|
|
|
echo -e "${blue}debug\t${default}d |See the output of the server directly to your terminal."
|
|
echo -e "${blue}debug\t${default}d |See the output of the server directly to your terminal."
|
|
@@ -289,7 +351,7 @@ case "${getopt}" in
|
|
|
fn_autoinstall;;
|
|
fn_autoinstall;;
|
|
|
mc|map-compressor)
|
|
mc|map-compressor)
|
|
|
compress_ut99_maps.sh;;
|
|
compress_ut99_maps.sh;;
|
|
|
- dd|depsdetect)
|
|
|
|
|
|
|
+ dd|deps-detect)
|
|
|
command_dev_detect_deps.sh;;
|
|
command_dev_detect_deps.sh;;
|
|
|
dg|detect-glibc)
|
|
dg|detect-glibc)
|
|
|
command_dev_detect_glibc.sh;;
|
|
command_dev_detect_glibc.sh;;
|
|
@@ -310,7 +372,7 @@ case "${getopt}" in
|
|
|
echo -e "${blue}update-functions\t${default}uf |Removes all functions so latest can be downloaded."
|
|
echo -e "${blue}update-functions\t${default}uf |Removes all functions so latest can be downloaded."
|
|
|
echo -e "${blue}monitor\t${default}m |Checks that the server is running."
|
|
echo -e "${blue}monitor\t${default}m |Checks that the server is running."
|
|
|
echo -e "${blue}test-alert\t${default}ta |Sends test alert."
|
|
echo -e "${blue}test-alert\t${default}ta |Sends test alert."
|
|
|
- echo -e "${blue}details\t${default}dt |Displays useful infomation about the server."
|
|
|
|
|
|
|
+ echo -e "${blue}details\t${default}dt |Displays useful information about the server."
|
|
|
echo -e "${blue}backup\t${default}b |Create archive of the server."
|
|
echo -e "${blue}backup\t${default}b |Create archive of the server."
|
|
|
echo -e "${blue}console\t${default}c |Console allows you to access the live view of a server."
|
|
echo -e "${blue}console\t${default}c |Console allows you to access the live view of a server."
|
|
|
echo -e "${blue}debug\t${default}d |See the output of the server directly to your terminal."
|
|
echo -e "${blue}debug\t${default}d |See the output of the server directly to your terminal."
|
|
@@ -357,7 +419,7 @@ case "${getopt}" in
|
|
|
command_install.sh;;
|
|
command_install.sh;;
|
|
|
ai|auto-install)
|
|
ai|auto-install)
|
|
|
fn_autoinstall;;
|
|
fn_autoinstall;;
|
|
|
- dd|depsdetect)
|
|
|
|
|
|
|
+ dd|deps-detect)
|
|
|
command_dev_detect_deps.sh;;
|
|
command_dev_detect_deps.sh;;
|
|
|
dg|detect-glibc)
|
|
dg|detect-glibc)
|
|
|
command_dev_detect_glibc.sh;;
|
|
command_dev_detect_glibc.sh;;
|
|
@@ -383,7 +445,7 @@ case "${getopt}" in
|
|
|
echo -e "${blue}validate\t${default}v |Validate server files with SteamCMD."
|
|
echo -e "${blue}validate\t${default}v |Validate server files with SteamCMD."
|
|
|
echo -e "${blue}monitor\t${default}m |Checks that the server is running."
|
|
echo -e "${blue}monitor\t${default}m |Checks that the server is running."
|
|
|
echo -e "${blue}test-alert\t${default}ta |Sends test alert."
|
|
echo -e "${blue}test-alert\t${default}ta |Sends test alert."
|
|
|
- echo -e "${blue}details\t${default}dt |Displays useful infomation about the server."
|
|
|
|
|
|
|
+ echo -e "${blue}details\t${default}dt |Displays useful information about the server."
|
|
|
echo -e "${blue}backup\t${default}b |Create archive of the server."
|
|
echo -e "${blue}backup\t${default}b |Create archive of the server."
|
|
|
echo -e "${blue}console\t${default}c |Console allows you to access the live view of a server."
|
|
echo -e "${blue}console\t${default}c |Console allows you to access the live view of a server."
|
|
|
echo -e "${blue}debug\t${default}d |See the output of the server directly to your terminal."
|
|
echo -e "${blue}debug\t${default}d |See the output of the server directly to your terminal."
|
|
@@ -427,7 +489,7 @@ case "${getopt}" in
|
|
|
install_ut2k4_key.sh;;
|
|
install_ut2k4_key.sh;;
|
|
|
mc|map-compressor)
|
|
mc|map-compressor)
|
|
|
compress_unreal2_maps.sh;;
|
|
compress_unreal2_maps.sh;;
|
|
|
- dd|depsdetect)
|
|
|
|
|
|
|
+ dd|deps-detect)
|
|
|
command_dev_detect_deps.sh;;
|
|
command_dev_detect_deps.sh;;
|
|
|
dg|detect-glibc)
|
|
dg|detect-glibc)
|
|
|
command_dev_detect_glibc.sh;;
|
|
command_dev_detect_glibc.sh;;
|
|
@@ -448,7 +510,7 @@ case "${getopt}" in
|
|
|
echo -e "${blue}update-functions\t${default}uf |Removes all functions so latest can be downloaded."
|
|
echo -e "${blue}update-functions\t${default}uf |Removes all functions so latest can be downloaded."
|
|
|
echo -e "${blue}monitor\t${default}m |Checks that the server is running."
|
|
echo -e "${blue}monitor\t${default}m |Checks that the server is running."
|
|
|
echo -e "${blue}test-alert\t${default}ta |Sends test alert."
|
|
echo -e "${blue}test-alert\t${default}ta |Sends test alert."
|
|
|
- echo -e "${blue}details\t${default}dt |Displays useful infomation about the server."
|
|
|
|
|
|
|
+ echo -e "${blue}details\t${default}dt |Displays useful information about the server."
|
|
|
echo -e "${blue}backup\t${default}b |Create archive of the server."
|
|
echo -e "${blue}backup\t${default}b |Create archive of the server."
|
|
|
echo -e "${blue}console\t${default}c |Console allows you to access the live view of a server."
|
|
echo -e "${blue}console\t${default}c |Console allows you to access the live view of a server."
|
|
|
echo -e "${blue}debug\t${default}d |See the output of the server directly to your terminal."
|
|
echo -e "${blue}debug\t${default}d |See the output of the server directly to your terminal."
|
|
@@ -462,6 +524,8 @@ case "${getopt}" in
|
|
|
|
|
|
|
|
if [ "${gamename}" == "Mumble" ]; then
|
|
if [ "${gamename}" == "Mumble" ]; then
|
|
|
fn_getopt_mumble
|
|
fn_getopt_mumble
|
|
|
|
|
+elif [ "${engine}" == "lwjgl2" ]; then
|
|
|
|
|
+ fn_getopt_minecraft
|
|
|
elif [ "${gamename}" == "TeamSpeak 3" ]; then
|
|
elif [ "${gamename}" == "TeamSpeak 3" ]; then
|
|
|
fn_getopt_teamspeak3
|
|
fn_getopt_teamspeak3
|
|
|
elif [ "${gamename}" == "Garry's Mod" ]; then
|
|
elif [ "${gamename}" == "Garry's Mod" ]; then
|