Daniel Gibbs 5 年之前
父節點
當前提交
5ad03cfbe6
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      lgsm/functions/alert.sh

+ 3 - 4
lgsm/functions/alert.sh

@@ -7,6 +7,9 @@
 functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_alert_log(){
+	info_distro.sh
+	info_config.sh
+	info_messages.sh
 	if [ -f "${alertlog}" ]; then
 		rm -f "${alertlog:?}"
 	fi
@@ -75,10 +78,6 @@ fn_alert_config(){
 	alertbody="${selfname} has received a new _default.cfg. Check file for changes."
 }
 
-info_distro.sh
-info_config.sh
-info_messages.sh
-
 if [ "${alert}" == "permissions" ]; then
 	fn_alert_permissions
 elif [ "${alert}" == "restart" ]; then