From 32e28d7cfed07c9370e151ea72a85602375e7a94 Mon Sep 17 00:00:00 2001 From: Mickael-Martin Date: Thu, 10 Oct 2019 18:40:34 +0200 Subject: [PATCH] read only for conf file --- scripts/install | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install b/scripts/install index 6c567f1..c1a168d 100644 --- a/scripts/install +++ b/scripts/install @@ -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