Browse Source
feat: add port command for DayZ server
This commit adds a new port command for the DayZ server in the info_messages.sh file. The port command is used to retrieve information about the DayZ server's ports using the "enfMain" keyword.
pull/4299/merge
Daniel Gibbs
1 year ago
No known key found for this signature in database
GPG Key ID: 2076B128385E8C55
1 changed files with
2 additions and
0 deletions
lgsm/modules/info_messages.sh
@ -692,6 +692,8 @@ fn_info_messages_ports() {
portcommand = "ss -tuplwn | grep AvorionServer"
portcommand = "ss -tuplwn | grep AvorionServer"
elif [ " ${ shortname } " = = "bf1942" ] ; then
elif [ " ${ shortname } " = = "bf1942" ] ; then
portcommand = "ss -tuplwn | grep bf1942_lnxded"
portcommand = "ss -tuplwn | grep bf1942_lnxded"
elif [ " ${ shortname } " = = "dayz" ] ; then
portcommand = "ss -tuplwn | grep enfMain"
elif [ " ${ shortname } " = = "mc" ] || [ " ${ shortname } " = = "nec" ] || [ " ${ shortname } " = = "pmc" ] || [ " ${ shortname } " = = "vpmc" ] || [ " ${ shortname } " = = "wmc" ] ; then
elif [ " ${ shortname } " = = "mc" ] || [ " ${ shortname } " = = "nec" ] || [ " ${ shortname } " = = "pmc" ] || [ " ${ shortname } " = = "vpmc" ] || [ " ${ shortname } " = = "wmc" ] ; then
portcommand = "ss -tuplwn | grep java"
portcommand = "ss -tuplwn | grep java"
elif [ " ${ shortname } " = = "terraria" ] ; then
elif [ " ${ shortname } " = = "terraria" ] ; then