Correction de la création de /etc/zabbix/web/zabbix.conf.php
This commit is contained in:
parent
ed0d4a6016
commit
eeccbaec4c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user