Browse Source

Release 20.5.0

pull/3054/head
Daniel Gibbs 5 years ago
parent
commit
5b84fb5bf4
  1. 3
      lgsm/functions/alert_discord.sh
  2. 21
      lgsm/functions/alert_slack.sh
  3. 2
      lgsm/functions/command_postdetails.sh
  4. 0
      lgsm/functions/command_update_functions.sh
  5. 2
      lgsm/functions/core_functions.sh
  6. 2
      lgsm/functions/fix_squad.sh
  7. 2
      linuxgsm.sh
  8. 11
      tests/tests_defaultcfg/defaultcfg_0.txt
  9. 2
      tests/tests_fctrserver.sh
  10. 2
      tests/tests_jc2server.sh
  11. 2
      tests/tests_mcserver.sh
  12. 2
      tests/tests_ts3server.sh

3
lgsm/functions/alert_discord.sh

@ -21,7 +21,8 @@ json=$(cat <<EOF
"color": "2067276",
"author": {
"name": "${alertemoji} ${alertsubject} ${alertemoji}",
"icon_url": "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/lgsm/data/alert_discord_logo.png"},
"icon_url": "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/lgsm/data/alert_discord_logo.png"
},
"title": "${servername}",
"description": "${alertbody} \n More info: ${alerturl}",
"url": "",

21
lgsm/functions/alert_slack.sh

@ -15,26 +15,20 @@ json=$(cat <<EOF
{
"attachments": [
{
"color": "#36a64f",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*${alertemoji} ${alertsubject} ${alertemoji}*"
"text": "*LinuxGSM Alert*"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*${servername}*"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${alertbody} \n More info: ${alerturl}"
"text": "*${alertemoji} ${alertsubject}* \n ${alertbody}"
}
},
{
@ -50,17 +44,18 @@ json=$(cat <<EOF
{
"type": "mrkdwn",
"text": "*Server IP:* \n ${alertip}:${port}"
}
]
},
{
"type": "divider"
"type": "mrkdwn",
"text": "*Server Name:* \n ${servername}"
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Hostname:* ${HOSTNAME}"
"text": "Hostname: ${HOSTNAME} / More info: ${alerturl}"
}
}
]

2
lgsm/functions/command_postdetails.sh

@ -73,8 +73,8 @@ if [ ${firstcommandname} == "POST-DETAILS" ]; then
echo -e "${pdurl}"
fi
fn_script_log_info "${pdurl}"
alerturl="${pdurl}"
if [ -z "${exitbypass}" ]; then
core_exit.sh
fi
alerturl="${pdurl}"

0
lgsm/functions/command_update_functions.sh

2
lgsm/functions/core_functions.sh

@ -7,7 +7,7 @@
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
modulesversion="v20.4.1"
modulesversion="v20.5.0"
# Core

2
lgsm/functions/fix_squad.sh

@ -8,7 +8,7 @@
oldservercfg="${serverfiles}/Squad/ServerConfig/${servercfg}"
if [ -f "${oldservercfg}" ] && [ -f "${servercfgfullpath}" ]; then
# diff old and new config - if it is different move the old config over the new one
if [ $(diff -c "${oldservercfg}" "${servercfgfullpath}" | wc -l) -gt 0 ]; then
if [ "$(diff -c "${oldservercfg}" "${servercfgfullpath}" | wc -l)" -gt 0 ]; then
fixname="Migrate server config to new Game folder"
fn_fix_msg_start
mv -v "${oldservercfg}" "${servercfgfullpath}"

2
linuxgsm.sh

@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="v20.4.1"
version="v20.5.0"
shortname="core"
gameservername="core"
commandname="CORE"

11
tests/tests_defaultcfg/defaultcfg_0.txt

@ -1,8 +1,6 @@
stats
displayip
postalert
postdays
posttarget
discordalert
discordwebhook
emailalert
@ -19,10 +17,13 @@ mailgunemail
pushbulletalert
pushbullettoken
channeltag
pushoveralert
pushovertoken
rocketchatalert
rocketchatwebhook
rocketchattoken
slackalert
slackwebhook
pushoveralert
pushovertoken
telegramalert
telegramtoken
telegramchatid
@ -38,6 +39,8 @@ sleeptime
stopmode
querymode
querytype
consoleverbose
consoleinteract
gamename
engine
glibc

2
tests/tests_fctrserver.sh

@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="v20.4.1"
version="v20.5.0"
shortname="fctr"
gameservername="fctrserver"
commandname="CORE"

2
tests/tests_jc2server.sh

@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="v20.4.1"
version="v20.5.0"
shortname="jc2"
gameservername="jc2server"
commandname="CORE"

2
tests/tests_mcserver.sh

@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="v20.4.1"
version="v20.5.0"
shortname="mc"
gameservername="mcserver"
commandname="CORE"

2
tests/tests_ts3server.sh

@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="v20.4.1"
version="v20.5.0"
shortname="ts3"
gameservername="ts3server"
commandname="CORE"

Loading…
Cancel
Save