diff --git a/install.sh b/install.sh index a80c3198a9483a657c7e9a1f6bce0c731764bb04..5a98e46abd740163fda83ad912d0dde1934b0e1f 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