From 4224183d10487361ab5af7674ac7456481477b4e Mon Sep 17 00:00:00 2001 From: lgcareer <18610854716@163.com> Date: Thu, 4 Jul 2019 17:16:05 +0800 Subject: [PATCH] add Enterprise WeChat config --- install.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/install.sh b/install.sh index a80c3198a9..5a98e46abd 100644 --- a/install.sh +++ b/install.sh @@ -106,6 +106,18 @@ sslEnable="true" # 下载Excel路径 xlsFilePath="/tmp/xls" +# 企业微信企业ID配置 +enterpriseWechatCorpId="xxxxxxxxxx" + +# 企业微信应用Secret配置 +enterpriseWechatSecret="xxxxxxxxxx" + +# 企业微信应用AgentId配置 +enterpriseWechatAgentId="xxxxxxxxxx" + +# 企业微信用户配置,多个用户以,分割 +enterpriseWechatUsers="xxxxx,xxxxx" + #是否启动监控自启动脚本 monitorServerState="false" @@ -345,6 +357,10 @@ sed -i ${txt} "s#mail.passwd.*#mail.passwd=${mailPassword}#g" conf/alert.propert sed -i ${txt} "s#mail.smtp.starttls.enable.*#mail.smtp.starttls.enable=${starttlsEnable}#g" conf/alert.properties sed -i ${txt} "s#mail.smtp.ssl.enable.*#mail.smtp.ssl.enable=${sslEnable}#g" conf/alert.properties sed -i ${txt} "s#xls.file.path.*#xls.file.path=${xlsFilePath}#g" conf/alert.properties +sed -i ${txt} "s#enterprise.wechat.corp.id.*#enterprise.wechat.corp.id=${enterpriseWechatCorpId}#g" conf/alert.properties +sed -i ${txt} "s#enterprise.wechat.secret.*#enterprise.wechat.secret=${enterpriseWechatSecret}#g" conf/alert.properties +sed -i ${txt} "s#enterprise.wechat.agent.id.*#enterprise.wechat.agent.id=${enterpriseWechatAgentId}#g" conf/alert.properties +sed -i ${txt} "s#enterprise.wechat.users.*#enterprise.wechat.users=${enterpriseWechatUsers}#g" conf/alert.properties sed -i ${txt} "s#installPath.*#installPath=${installPath}#g" conf/config/install_config.conf