Browse Source

add more info to email

feature/alerts-refactor
Daniel Gibbs 4 years ago
parent
commit
ac90e1da1b
No known key found for this signature in database GPG Key ID: 2EBB36015C6D78E2
  1. 5
      lgsm/functions/alert.sh
  2. 8
      lgsm/functions/info_messages.sh

5
lgsm/functions/alert.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
}

8
lgsm/functions/info_messages.sh

@ -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(){

Loading…
Cancel
Save