From 9dd84cf45063659c2f95df3ef5f68a4d6d71e38a Mon Sep 17 00:00:00 2001 From: Mickael-Martin Date: Tue, 9 Jul 2019 13:12:21 +0200 Subject: [PATCH] fix var confServerPath --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 4d3d976..556c1f3 100644 --- a/scripts/install +++ b/scripts/install @@ -276,7 +276,7 @@ systemctl reload nginx ### `ynh_replace_string` is used to replace a string in a file. ### (It's compatible with sed regular expressions syntax) ynh_print_info "Generate zabbix config files" -confUserPpath=$(find /var/cache/yunohost/ -name "usr_share_zabbix_conf_zabbix.conf.php") +confServerPath=$(find /var/cache/yunohost/ -name "usr_share_zabbix_conf_zabbix.conf.php") cp "$confServerPath" /usr/share/zabbix/conf/zabbix.conf.php ynh_replace_string --match_string="db_name" --replace_string="$db_name" --target_file=/usr/share/zabbix/conf/zabbix.conf.php ynh_replace_string --match_string="db_user" --replace_string="$db_user" --target_file=/usr/share/zabbix/conf/zabbix.conf.php