1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zabbix_ynh.git synced 2024-09-03 20:36:14 +02:00

read only for conf file

This commit is contained in:
Mickael-Martin 2019-10-10 18:40:34 +02:00
parent 3e0608c7b0
commit 32e28d7cfe

View file

@ -281,6 +281,7 @@ ynh_replace_string --match_string="db_name" --replace_string="$db_name" --target
ynh_replace_string --match_string="db_user" --replace_string="$db_user" --target_file=/usr/share/zabbix/conf/zabbix.conf.php
ynh_replace_string --match_string="db_pwd" --replace_string="$db_pwd" --target_file=/usr/share/zabbix/conf/zabbix.conf.php
chattr +i /usr/share/zabbix/conf/zabbix.conf.php
chown -R www-data. /usr/share/zabbix
ynh_replace_string --match_string="DBName=zabbix" --replace_string="DBName=$db_name" --target_file=/etc/zabbix/zabbix_server.conf