|
@@ -134,6 +134,13 @@ fn_info_message_gameserver(){
|
|
|
# Server ip
|
|
# Server ip
|
|
|
echo -e "${blue}Server IP:\t${default}${ip}:${port}"
|
|
echo -e "${blue}Server IP:\t${default}${ip}:${port}"
|
|
|
|
|
|
|
|
|
|
+ # External server ip
|
|
|
|
|
+ if [ -n "${extip}" ]; then
|
|
|
|
|
+ if [ "${ip}" != "${extip}" ]; then
|
|
|
|
|
+ echo -e "${blue}Internet IP:\t${default}${extip}:${port}"
|
|
|
|
|
+ fi
|
|
|
|
|
+ fi
|
|
|
|
|
+
|
|
|
# Server password
|
|
# Server password
|
|
|
if [ -n "${serverpassword}" ]; then
|
|
if [ -n "${serverpassword}" ]; then
|
|
|
echo -e "${blue}Server password:\t${default}${serverpassword}"
|
|
echo -e "${blue}Server password:\t${default}${serverpassword}"
|
|
@@ -282,12 +289,20 @@ fn_info_message_script(){
|
|
|
fi
|
|
fi
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|
|
+ # Discord alert
|
|
|
|
|
+ echo -e "${blue}Discord alert:\t${default}${discordalert}"
|
|
|
# Email alert
|
|
# Email alert
|
|
|
echo -e "${blue}Email alert:\t${default}${emailalert}"
|
|
echo -e "${blue}Email alert:\t${default}${emailalert}"
|
|
|
-
|
|
|
|
|
# Pushbullet alert
|
|
# Pushbullet alert
|
|
|
echo -e "${blue}Pushbullet alert:\t${default}${pushbulletalert}"
|
|
echo -e "${blue}Pushbullet alert:\t${default}${pushbulletalert}"
|
|
|
-
|
|
|
|
|
|
|
+ # IFTTT alert
|
|
|
|
|
+ echo -e "${blue}IFTTT alert:\t${default}${iftttalert}"
|
|
|
|
|
+ # Mailgun alert
|
|
|
|
|
+ echo -e "${blue}Mailgun (email) alert:\t${default}${mailgunalert}"
|
|
|
|
|
+ # Pushover alert
|
|
|
|
|
+ echo -e "${blue}Pushover alert:\t${default}${pushoveralert}"
|
|
|
|
|
+ # Telegram alert
|
|
|
|
|
+ echo -e "${blue}Telegram alert:\t${default}${telegramalert}"
|
|
|
# Update on start
|
|
# Update on start
|
|
|
if [ -n "${updateonstart}" ]; then
|
|
if [ -n "${updateonstart}" ]; then
|
|
|
echo -e "${blue}Update on start:\t${default}${updateonstart}"
|
|
echo -e "${blue}Update on start:\t${default}${updateonstart}"
|
|
@@ -375,12 +390,16 @@ fn_info_message_ports(){
|
|
|
local ports_edit_array=( "avalanche" "Ballistic Overkill" "dontstarve" "idtech2" "idtech3" "idtech3_ql" "lwjgl2" "Project Cars" "projectzomboid" "quake" "refractor" "realvirtuality" "renderware" "seriousengine35" "teeworlds" "terraria" "unreal" "unreal2" "unreal3" "TeamSpeak 3" "Mumble" "7 Days To Die" )
|
|
local ports_edit_array=( "avalanche" "Ballistic Overkill" "dontstarve" "idtech2" "idtech3" "idtech3_ql" "lwjgl2" "Project Cars" "projectzomboid" "quake" "refractor" "realvirtuality" "renderware" "seriousengine35" "teeworlds" "terraria" "unreal" "unreal2" "unreal3" "TeamSpeak 3" "Mumble" "7 Days To Die" )
|
|
|
for port_edit in "${ports_edit_array[@]}"
|
|
for port_edit in "${ports_edit_array[@]}"
|
|
|
do
|
|
do
|
|
|
- if [ "${engine}" == "${port_edit}" ]||[ "${gamename}" == "${port_edit}" ]; then
|
|
|
|
|
|
|
+ if [ "${shortname}" == "ut3" ]; then
|
|
|
|
|
+ parmslocation="${servercfgdir}/UTEngine.ini\n${servercfgdir}/UTWeb.ini"
|
|
|
|
|
+ elif [ "${shortname}" == "kf2" ]; then
|
|
|
|
|
+ parmslocation="${servercfgdir}/LinuxServer-KFEngine.ini\n${servercfgdir}/KFWeb.ini"
|
|
|
|
|
+ elif [ "${engine}" == "${port_edit}" ]||[ "${gamename}" == "${port_edit}" ]; then
|
|
|
parmslocation="${servercfgfullpath}"
|
|
parmslocation="${servercfgfullpath}"
|
|
|
fi
|
|
fi
|
|
|
done
|
|
done
|
|
|
# engines/games that require editing in the script file
|
|
# engines/games that require editing in the script file
|
|
|
- local ports_edit_array=( "goldsource" "Factorio" "Hurtworld" "iw3.0" "Rust" "spark" "source" "starbound" "unreal4" "realvirtuality")
|
|
|
|
|
|
|
+ local ports_edit_array=( "goldsource" "Factorio" "Hurtworld" "iw3.0" "Rust" "spark" "source" "starbound" "unreal4" "realvirtuality")
|
|
|
for port_edit in "${ports_edit_array[@]}"
|
|
for port_edit in "${ports_edit_array[@]}"
|
|
|
do
|
|
do
|
|
|
if [ "${engine}" == "${port_edit}" ]||[ "${gamename}" == "${port_edit}" ]; then
|
|
if [ "${engine}" == "${port_edit}" ]||[ "${gamename}" == "${port_edit}" ]; then
|
|
@@ -844,9 +863,9 @@ fn_info_message_unreal(){
|
|
|
fi
|
|
fi
|
|
|
if [ "${appid}" ]; then
|
|
if [ "${appid}" ]; then
|
|
|
if [ "${appid}" == "223250" ]; then
|
|
if [ "${appid}" == "223250" ]; then
|
|
|
- echo -e "< Steam\tOUTBOUND\t20610\tudp"
|
|
|
|
|
|
|
+ echo -e "< Steam\tINBOUND\t20610\tudp"
|
|
|
else
|
|
else
|
|
|
- echo -e "< Steam\tOUTBOUND\t20660\tudp"
|
|
|
|
|
|
|
+ echo -e "< Steam\tINBOUND\t20660\tudp"
|
|
|
fi
|
|
fi
|
|
|
fi
|
|
fi
|
|
|
echo -e "> WebAdmin\tINBOUND\t${webadminport}\ttcp\tListenPort=${webadminport}"
|
|
echo -e "> WebAdmin\tINBOUND\t${webadminport}\ttcp\tListenPort=${webadminport}"
|
|
@@ -862,12 +881,43 @@ fn_info_message_unreal(){
|
|
|
} | column -s $'\t' -t
|
|
} | column -s $'\t' -t
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-fn_info_message_ut3(){
|
|
|
|
|
|
|
+fn_info_message_unreal3(){
|
|
|
echo -e "netstat -atunp | grep ut3-bin"
|
|
echo -e "netstat -atunp | grep ut3-bin"
|
|
|
echo -e ""
|
|
echo -e ""
|
|
|
{
|
|
{
|
|
|
echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
|
|
echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
|
|
|
echo -e "> Game/Query\tINBOUND\t${port}\ttcp/udp"
|
|
echo -e "> Game/Query\tINBOUND\t${port}\ttcp/udp"
|
|
|
|
|
+ echo -e "> WebAdmin\tINBOUND\t${webadminport}\ttcp\tListenPort=${webadminport}"
|
|
|
|
|
+ } | column -s $'\t' -t
|
|
|
|
|
+ echo -e ""
|
|
|
|
|
+ echo -e "${lightgreen}${servername} WebAdmin${default}"
|
|
|
|
|
+ fn_messages_separator
|
|
|
|
|
+ {
|
|
|
|
|
+ echo -e "${blue}WebAdmin enabled:\t${default}${webadminenabled}"
|
|
|
|
|
+ echo -e "${blue}WebAdmin url:\t${default}http://${ip}:${webadminport}"
|
|
|
|
|
+ echo -e "${blue}WebAdmin username:\t${default}${webadminuser}"
|
|
|
|
|
+ echo -e "${blue}WebAdmin password:\t${default}${webadminpass}"
|
|
|
|
|
+ } | column -s $'\t' -t
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+fn_info_message_kf2(){
|
|
|
|
|
+ echo -e "netstat -atunp | grep KFGame"
|
|
|
|
|
+ echo -e ""
|
|
|
|
|
+ {
|
|
|
|
|
+ echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
|
|
|
|
|
+ echo -e "> Game\tINBOUND\t${port}\ttcp"
|
|
|
|
|
+ echo -e "> Query\tINBOUND\t${queryport}\ttcp/udp"
|
|
|
|
|
+ echo -e "> Steam\tINBOUND\t20560\tudp"
|
|
|
|
|
+ echo -e "> WebAdmin\tINBOUND\t${webadminport}\ttcp\tListenPort=${webadminport}"
|
|
|
|
|
+ } | column -s $'\t' -t
|
|
|
|
|
+ echo -e ""
|
|
|
|
|
+ echo -e "${lightgreen}${servername} WebAdmin${default}"
|
|
|
|
|
+ fn_messages_separator
|
|
|
|
|
+ {
|
|
|
|
|
+ echo -e "${blue}WebAdmin enabled:\t${default}${webadminenabled}"
|
|
|
|
|
+ echo -e "${blue}WebAdmin url:\t${default}http://${ip}:${webadminport}"
|
|
|
|
|
+ echo -e "${blue}WebAdmin username:\t${default}${webadminuser}"
|
|
|
|
|
+ echo -e "${blue}WebAdmin password:\t${default}${webadminpass}"
|
|
|
} | column -s $'\t' -t
|
|
} | column -s $'\t' -t
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -895,37 +945,7 @@ fn_info_message_mta(){
|
|
|
|
|
|
|
|
fn_info_message_select_engine(){
|
|
fn_info_message_select_engine(){
|
|
|
# Display details depending on game or engine.
|
|
# Display details depending on game or engine.
|
|
|
- if [ "${engine}" == "avalanche" ]; then
|
|
|
|
|
- fn_info_message_avalanche
|
|
|
|
|
- elif [ "${engine}" == "refractor" ]; then
|
|
|
|
|
- fn_info_message_refractor
|
|
|
|
|
- elif [ "${engine}" == "dontstarve" ]; then
|
|
|
|
|
- fn_info_message_dontstarve
|
|
|
|
|
- elif [ "${engine}" == "goldsource" ]; then
|
|
|
|
|
- fn_info_message_goldsource
|
|
|
|
|
- elif [ "${engine}" == "lwjgl2" ]; then
|
|
|
|
|
- fn_info_message_minecraft
|
|
|
|
|
- elif [ "${engine}" == "projectzomboid" ]; then
|
|
|
|
|
- fn_info_message_projectzomboid
|
|
|
|
|
- elif [ "${engine}" == "realvirtuality" ]; then
|
|
|
|
|
- fn_info_message_realvirtuality
|
|
|
|
|
- elif [ "${engine}" == "seriousengine35" ]; then
|
|
|
|
|
- fn_info_message_seriousengine35
|
|
|
|
|
- elif [ "${engine}" == "source" ]; then
|
|
|
|
|
- fn_info_message_source
|
|
|
|
|
- elif [ "${engine}" == "spark" ]; then
|
|
|
|
|
- fn_info_message_spark
|
|
|
|
|
- elif [ "${engine}" == "starbound" ]; then
|
|
|
|
|
- fn_info_message_starbound
|
|
|
|
|
- elif [ "${engine}" == "teeworlds" ]; then
|
|
|
|
|
- fn_info_message_teeworlds
|
|
|
|
|
- elif [ "${engine}" == "terraria" ]; then
|
|
|
|
|
- fn_info_message_terraria
|
|
|
|
|
- elif [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then
|
|
|
|
|
- fn_info_message_unreal
|
|
|
|
|
- elif [ "${engine}" == "unreal3" ]; then
|
|
|
|
|
- fn_info_message_ut3
|
|
|
|
|
- elif [ "${gamename}" == "7 Days To Die" ]; then
|
|
|
|
|
|
|
+ if [ "${gamename}" == "7 Days To Die" ]; then
|
|
|
fn_info_message_sdtd
|
|
fn_info_message_sdtd
|
|
|
elif [ "${gamename}" == "ARK: Survival Evolved" ]; then
|
|
elif [ "${gamename}" == "ARK: Survival Evolved" ]; then
|
|
|
fn_info_message_ark
|
|
fn_info_message_ark
|
|
@@ -945,6 +965,8 @@ fn_info_message_select_engine(){
|
|
|
fn_info_message_factorio
|
|
fn_info_message_factorio
|
|
|
elif [ "${gamename}" == "Hurtworld" ]; then
|
|
elif [ "${gamename}" == "Hurtworld" ]; then
|
|
|
fn_info_message_hurtworld
|
|
fn_info_message_hurtworld
|
|
|
|
|
+ elif [ "${shortname}" == "kf2" ]; then
|
|
|
|
|
+ fn_info_message_kf2
|
|
|
elif [ "${gamename}" == "Project Cars" ]; then
|
|
elif [ "${gamename}" == "Project Cars" ]; then
|
|
|
fn_info_message_projectcars
|
|
fn_info_message_projectcars
|
|
|
elif [ "${gamename}" == "QuakeWorld" ]; then
|
|
elif [ "${gamename}" == "QuakeWorld" ]; then
|
|
@@ -969,6 +991,36 @@ fn_info_message_select_engine(){
|
|
|
fn_info_message_rust
|
|
fn_info_message_rust
|
|
|
elif [ "${gamename}" == "Wolfenstein: Enemy Territory" ]; then
|
|
elif [ "${gamename}" == "Wolfenstein: Enemy Territory" ]; then
|
|
|
fn_info_message_wolfensteinenemyterritory
|
|
fn_info_message_wolfensteinenemyterritory
|
|
|
|
|
+ elif [ "${engine}" == "avalanche" ]; then
|
|
|
|
|
+ fn_info_message_avalanche
|
|
|
|
|
+ elif [ "${engine}" == "refractor" ]; then
|
|
|
|
|
+ fn_info_message_refractor
|
|
|
|
|
+ elif [ "${engine}" == "dontstarve" ]; then
|
|
|
|
|
+ fn_info_message_dontstarve
|
|
|
|
|
+ elif [ "${engine}" == "goldsource" ]; then
|
|
|
|
|
+ fn_info_message_goldsource
|
|
|
|
|
+ elif [ "${engine}" == "lwjgl2" ]; then
|
|
|
|
|
+ fn_info_message_minecraft
|
|
|
|
|
+ elif [ "${engine}" == "projectzomboid" ]; then
|
|
|
|
|
+ fn_info_message_projectzomboid
|
|
|
|
|
+ elif [ "${engine}" == "realvirtuality" ]; then
|
|
|
|
|
+ fn_info_message_realvirtuality
|
|
|
|
|
+ elif [ "${engine}" == "seriousengine35" ]; then
|
|
|
|
|
+ fn_info_message_seriousengine35
|
|
|
|
|
+ elif [ "${engine}" == "source" ]; then
|
|
|
|
|
+ fn_info_message_source
|
|
|
|
|
+ elif [ "${engine}" == "spark" ]; then
|
|
|
|
|
+ fn_info_message_spark
|
|
|
|
|
+ elif [ "${engine}" == "starbound" ]; then
|
|
|
|
|
+ fn_info_message_starbound
|
|
|
|
|
+ elif [ "${engine}" == "teeworlds" ]; then
|
|
|
|
|
+ fn_info_message_teeworlds
|
|
|
|
|
+ elif [ "${engine}" == "terraria" ]; then
|
|
|
|
|
+ fn_info_message_terraria
|
|
|
|
|
+ elif [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then
|
|
|
|
|
+ fn_info_message_unreal
|
|
|
|
|
+ elif [ "${engine}" == "unreal3" ]; then
|
|
|
|
|
+ fn_info_message_unreal3
|
|
|
else
|
|
else
|
|
|
fn_print_error_nl "Unable to detect server engine."
|
|
fn_print_error_nl "Unable to detect server engine."
|
|
|
fi
|
|
fi
|