From eeccbaec4cd22e4c4284addfada633cf811a8536 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 29 Apr 2020 02:21:43 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20de=20la=20cr=C3=A9ation=20de=20/et?= =?UTF-8?q?c/zabbix/web/zabbix.conf.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zabbix/init_zabbix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zabbix/init_zabbix.sh b/zabbix/init_zabbix.sh index 57d1d45..9c8a3f8 100755 --- a/zabbix/init_zabbix.sh +++ b/zabbix/init_zabbix.sh @@ -13,7 +13,7 @@ EOF zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u${DB_USER} -p${DB_PASSWORD} ${DB_NAME} echo "DBPassword=${DB_PASSWORD}" >> /etc/zabbix/zabbix_server.conf.d/db.conf -sed "s@^\$DB['PASSWORD'].*$@\$DB['PASSWORD'] = \'${DB_PASSWORD}\';@g" /usr/share/zabbix/conf/zabbix.conf.php.example > /etc/zabbix/web/zabbix.conf.php +sed "s@^\(\$DB\['PASSWORD'\][^=]*\).*@\1= '${DB_PASSWORD}';@g" /usr/share/zabbix/conf/zabbix.conf.php.example > /etc/zabbix/web/zabbix.conf.php wget -qO /usr/bin/freesms https://gitlab.blorand.org/benoit/helper-scripts/raw/branch/master/sms/freesms wget -Qo /usr/lib/zabbix/alertscripts/freesms https://gitlab.blorand.org/benoit/helper-scripts/raw/branch/master/sms/freesms.zabbix_alert_script