Browse Source

SC2086

pull/2088/head
Daniel Gibbs 6 years ago
parent
commit
9ee6bdb666
  1. 2
      lgsm/functions/alert_mailgun.sh
  2. 2
      lgsm/functions/check_status.sh
  3. 2
      lgsm/functions/install_server_files.sh
  4. 2
      lgsm/functions/update_steamcmd.sh

2
lgsm/functions/alert_mailgun.sh

@ -17,7 +17,7 @@ mailgunsend=$(${curlpath} -s --user "api:${mailguntoken}" \
-F subject="${alertemoji} ${alertsubject} ${alertemoji}" \
-F o:tag='alert' \
-F o:tag='LinuxGSM' \
-F text="$(cat "${alertlog}")" https://api.mailgun.net/v3/${mailgundomain}/messages)
-F text="$(cat "${alertlog}")" "https://api.mailgun.net/v3/${mailgundomain}/messages")
if [ -z "${mailgunsend}" ]; then
fn_print_fail_nl "Sending Email alert: Mailgun: ${email}"

2
lgsm/functions/check_status.sh

@ -12,7 +12,7 @@ if [ "${shortname}" == "ts3" ]; then
# 1: Server is running
# 0: Server seems to have died
# 0: No server running (ts3server.pid is missing)
status=$("${executabledir}/ts3server_startscript.sh" status servercfgfullpathfile=${servercfgfullpath})
status=$("${executabledir}/ts3server_startscript.sh" status servercfgfullpathfile="${servercfgfullpath}")
if [ "${status}" == "Server is running" ]; then
status=1
else

2
lgsm/functions/install_server_files.sh

@ -72,7 +72,7 @@ fn_install_server_files_steamcmd(){
fi
if [ "${counter}" -ge "7" ]; then
echo "Removing $(find ${serverfiles} -type d -print0 | grep -Ez '[^/]{30}$')"
echo "Removing $(find "${serverfiles}" -type d -print0 | grep -Ez '[^/]{30}$')"
find "${serverfiles}" -type d -print0 | grep -Ez '[^/]{30}$' | xargs -0 rm -rf
fi
if [ "${counter}" -ge "9" ]; then

2
lgsm/functions/update_steamcmd.sh

@ -157,7 +157,7 @@ fn_update_steamcmd_check(){
fi
# Set branch for updateinfo
IFS=' ' read -ra branchsplits <<< ${branch}
IFS=' ' read -ra branchsplits <<< "${branch}"
if [ "${#branchsplits[@]}" -gt 1 ]; then
branchname="${branchsplits[1]}"
else

Loading…
Cancel
Save