Ajout de la création du fichier /etc/zabbix/web/zabbix.conf.php
Mask au lieu de disable une fois l'initialisation effectuée
This commit is contained in:
parent
d9b2f97181
commit
9302864751
@ -13,8 +13,8 @@ EOF
|
|||||||
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u${DB_USER} -p${DB_PASSWORD} ${DB_NAME}
|
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
|
echo "DBPassword=${DB_PASSWORD}" >> /etc/zabbix/zabbix_server.conf.d/db.conf
|
||||||
sed -i "s@^\$DB['PASSWORD'].*$@\$DB['PASSWORD'] = \'${DB_PASSWORD}\';@g" /etc/zabbix/web/zabbix.conf.php
|
sed "s@^\$DB['PASSWORD'].*$@\$DB['PASSWORD'] = \'${DB_PASSWORD}\';@g" /usr/share/zabbix/conf/zabbix.conf.php.example > /etc/zabbix/web/zabbix.conf.php
|
||||||
|
|
||||||
systemctl --now enable zabbix-server zabbix-agent nginx php7.3-fpm
|
systemctl --now enable zabbix-server zabbix-agent nginx php7.3-fpm
|
||||||
|
|
||||||
systemctl disable zabbix-init.service
|
systemctl --now mask zabbix-init.service
|
||||||
|
Loading…
Reference in New Issue
Block a user