Przeglądaj źródła

fix(alert): cleanup and remove unused variables (#3195)

Christian 5 lat temu
rodzic
commit
080137b05d

+ 0 - 2
lgsm/config-default/config-lgsm/scpslserver/_default.cfg

@@ -28,8 +28,6 @@ displayip=""
 
 # More info | https://docs.linuxgsm.com/alerts#more-info
 postalert="off"
-postdays="7"
-posttarget="https://hastebin.com"
 
 # Discord Alerts | https://docs.linuxgsm.com/alerts/discord
 discordalert="off"

+ 0 - 2
lgsm/config-default/config-lgsm/scpslsmserver/_default.cfg

@@ -28,8 +28,6 @@ displayip=""
 
 # More info | https://docs.linuxgsm.com/alerts#more-info
 postalert="off"
-postdays="7"
-posttarget="https://hastebin.com"
 
 # Discord Alerts | https://docs.linuxgsm.com/alerts/discord
 discordalert="off"

+ 0 - 6
lgsm/functions/alert.sh

@@ -115,12 +115,6 @@ if [ "${postalert}" == "on" ]&&[ -n "${postalert}" ]; then
 elif [ "${postalert}" != "on" ]&&[ "${commandname}" == "TEST-ALERT" ]; then
 	fn_print_warn_nl "More Info not enabled"
 	fn_script_log_warn "More Info alerts not enabled"
-elif [ -z "${posttarget}" ]&&[ "${commandname}" == "TEST-ALERT" ]; then
-	fn_print_error_nl "posttarget not set"
-	fn_script_error "posttarget not set"
-elif [ -z "${postdays}" ]&&[ "${commandname}" == "TEST-ALERT" ]; then
-	fn_print_error_nl "postdays not set"
-	fn_script_error "postdays not set"
 fi
 
 if [ "${discordalert}" == "on" ]&&[ -n "${discordalert}" ]; then