|
|
@ -206,8 +206,8 @@ fn_info_message_gameserver_resource(){ |
|
|
|
echo -e "${lightyellow}Storage${default}" |
|
|
|
echo -e "${lightblue}Total:\t${default}${rootdirdu}" |
|
|
|
echo -e "${lightblue}Serverfiles:\t${default}${serverfilesdu}" |
|
|
|
if [ -d "${backupdir}" ]; then |
|
|
|
echo -e "${lightblue}Backups:\t${default}${backupdirdu}" |
|
|
|
if [ -d "${backudpir}" ]; then |
|
|
|
echo -e "${lightblue}Backups:\t${default}${backudpirdu}" |
|
|
|
fi |
|
|
|
} | column -s $'\t' -t |
|
|
|
} |
|
|
@ -507,7 +507,7 @@ fn_info_message_script(){ |
|
|
|
# Rocketchat alert: off |
|
|
|
# Slack alert: off |
|
|
|
# Telegram alert: off |
|
|
|
# Update on start: off |
|
|
|
# udpate on start: off |
|
|
|
# User: lgsm |
|
|
|
# Location: /home/lgsm/csgoserver |
|
|
|
# Config file: /home/lgsm/csgoserver/serverfiles/csgo/cfg/csgoserver.cfg |
|
|
@ -556,9 +556,9 @@ fn_info_message_script(){ |
|
|
|
# Telegram alert |
|
|
|
echo -e "${lightblue}Telegram alert:\t${default}${telegramalert}" |
|
|
|
|
|
|
|
# Update on start |
|
|
|
if [ -n "${updateonstart}" ]; then |
|
|
|
echo -e "${lightblue}Update on start:\t${default}${updateonstart}" |
|
|
|
# udpate on start |
|
|
|
if [ -n "${udpateonstart}" ]; then |
|
|
|
echo -e "${lightblue}udpate on start:\t${default}${udpateonstart}" |
|
|
|
fi |
|
|
|
|
|
|
|
# User |
|
|
@ -598,18 +598,18 @@ fn_info_message_backup(){ |
|
|
|
echo -e "" |
|
|
|
echo -e "${lightgreen}Backups${default}" |
|
|
|
fn_messages_separator |
|
|
|
if [ ! -d "${backupdir}" ]||[ "${backupcount}" == "0" ]; then |
|
|
|
if [ ! -d "${backudpir}" ]||[ "${backupcount}" == "0" ]; then |
|
|
|
echo -e "No Backups created" |
|
|
|
else |
|
|
|
{ |
|
|
|
echo -e "${lightblue}No. of backups:\t${default}${backupcount}" |
|
|
|
echo -e "${lightblue}Latest backup:${default}" |
|
|
|
if [ "${lastbackupdaysago}" == "0" ]; then |
|
|
|
echo -e "${lightblue} date:\t${default}${lastbackupdate} (less than 1 day ago)" |
|
|
|
elif [ "${lastbackupdaysago}" == "1" ]; then |
|
|
|
echo -e "${lightblue} date:\t${default}${lastbackupdate} (1 day ago)" |
|
|
|
if [ "${lastbackudpaysago}" == "0" ]; then |
|
|
|
echo -e "${lightblue} date:\t${default}${lastbackudpate} (less than 1 day ago)" |
|
|
|
elif [ "${lastbackudpaysago}" == "1" ]; then |
|
|
|
echo -e "${lightblue} date:\t${default}${lastbackudpate} (1 day ago)" |
|
|
|
else |
|
|
|
echo -e "${lightblue} date:\t${default}${lastbackupdate} (${lastbackupdaysago} days ago)" |
|
|
|
echo -e "${lightblue} date:\t${default}${lastbackudpate} (${lastbackudpaysago} days ago)" |
|
|
|
fi |
|
|
|
echo -e "${lightblue} file:\t${default}${lastbackup}" |
|
|
|
echo -e "${lightblue} size:\t${default}${lastbackupsize}" |
|
|
@ -748,7 +748,7 @@ fn_port(){ |
|
|
|
portname="${1}" |
|
|
|
porttype="${2}" |
|
|
|
portprotocol="${3}" |
|
|
|
echo -e "${portname}\t${!porttype}\t${portprotocol}\t$(echo "${ssinfo}" | grep ${!porttype} | wc -l)" |
|
|
|
echo -e "${portname}\t${!porttype}\t${portprotocol}\t$(echo "${ssinfo}" | grep ${portprotocol} | grep ${!portname} | wc -l)" |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
@ -888,7 +888,7 @@ fn_info_message_goldsrc(){ |
|
|
|
{ |
|
|
|
fn_port "header" |
|
|
|
fn_port "Game" port udp |
|
|
|
fn_port "Client" clientport upd |
|
|
|
fn_port "Client" clientport udp |
|
|
|
} | column -s $'\t' -t |
|
|
|
} |
|
|
|
|
|
|
@ -929,7 +929,7 @@ fn_info_message_jc3(){ |
|
|
|
fn_port "header" |
|
|
|
fn_port "Game" port udp |
|
|
|
fn_port "Query" queryport udp |
|
|
|
fn_port "Steam" steamport upd |
|
|
|
fn_port "Steam" steamport udp |
|
|
|
fn_port "HTTP" httpport tcp |
|
|
|
} | column -s $'\t' -t |
|
|
|
} |
|
|
@ -978,7 +978,7 @@ fn_info_message_mom(){ |
|
|
|
fn_info_message_mumble(){ |
|
|
|
{ |
|
|
|
fn_port "header" |
|
|
|
fn_port "Voice" port upd |
|
|
|
fn_port "Voice" port udp |
|
|
|
fn_port "Query" queryport tcp |
|
|
|
} | column -s $'\t' -t |
|
|
|
} |
|
|
@ -997,7 +997,7 @@ fn_info_message_projectcars(){ |
|
|
|
fn_port "header" |
|
|
|
fn_port "Game" port udp |
|
|
|
fn_port "Query" queryport udp |
|
|
|
fn_port "Steam" steamport upd |
|
|
|
fn_port "Steam" steamport udp |
|
|
|
} | column -s $'\t' -t |
|
|
|
} |
|
|
|
|
|
|
@ -1068,7 +1068,7 @@ fn_info_message_bfv(){ |
|
|
|
} | column -s $'\t' -t |
|
|
|
} |
|
|
|
|
|
|
|
# Not updated to new format as cant get server to start |
|
|
|
# Not udpated to new format as cant get server to start |
|
|
|
fn_info_message_risingworld(){ |
|
|
|
{ |
|
|
|
fn_port "header" |
|
|
@ -1154,8 +1154,8 @@ fn_info_message_source(){ |
|
|
|
fn_port "RCON" rconport tcp |
|
|
|
fn_port "SourceTV" sourcetvport udp |
|
|
|
# not manualy set by default more research needed |
|
|
|
fn_port "Steam" steamport upd |
|
|
|
fn_port "Client" clientport upd |
|
|
|
fn_port "Steam" steamport udp |
|
|
|
fn_port "Client" clientport udp |
|
|
|
} | column -s $'\t' -t |
|
|
|
} |
|
|
|
|
|
|
|