Daniel Gibbs
4 years ago
No known key found for this signature in database
GPG Key ID: 2EBB36015C6D78E2
2 changed files with
9 additions and
4 deletions
-
lgsm/functions/alert.sh
-
lgsm/functions/info_messages.sh
|
|
@ -21,6 +21,11 @@ fn_alert_log(){ |
|
|
|
fn_info_message_server_resource |
|
|
|
fn_info_message_gameserver_resource |
|
|
|
fn_info_message_gameserver |
|
|
|
fn_info_message_script |
|
|
|
fn_info_message_backup |
|
|
|
fn_info_message_commandlineparms |
|
|
|
fn_info_message_ports_edit |
|
|
|
fn_info_message_ports |
|
|
|
fn_info_logs |
|
|
|
} | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"| tee -a "${alertlog}" > /dev/null 2>&1 |
|
|
|
} |
|
|
|
|
|
@ -62,17 +62,17 @@ fn_info_message_head(){ |
|
|
|
echo -e "Message" |
|
|
|
echo -e "${alertmessage}" |
|
|
|
echo -e "" |
|
|
|
echo -e "Game" |
|
|
|
echo -e "${gamename}" |
|
|
|
echo -e "" |
|
|
|
echo -e "Server name" |
|
|
|
echo -e "${servername}" |
|
|
|
echo -e "" |
|
|
|
echo -e "Game" |
|
|
|
echo -e "${gamename}" |
|
|
|
echo -e "" |
|
|
|
echo -e "Hostname" |
|
|
|
echo -e "${HOSTNAME}" |
|
|
|
echo -e "" |
|
|
|
echo -e "Server IP" |
|
|
|
echo -e "${ip}:${port}" |
|
|
|
echo -e "${alertip}:${port}" |
|
|
|
} |
|
|
|
|
|
|
|
fn_info_message_distro(){ |
|
|
|