From e17c086ce0baa7e52e4ab0c39e4c162a9459ae18 Mon Sep 17 00:00:00 2001 From: Mickael-Martin Date: Thu, 26 Nov 2020 20:13:43 +0100 Subject: [PATCH] check if $final_path/conf/zabbix.conf.php before attempt to delete it --- scripts/install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 41fd488..665d2e2 100644 --- a/scripts/install +++ b/scripts/install @@ -111,7 +111,9 @@ ynh_replace_string --match_string="# fr_FR.UTF-8 UTF-8" --replace_string="fr_FR. locale-gen ln -s /usr/share/zabbix "$final_path" -ynh_secure_remove "$final_path/conf/zabbix.conf.php" +if [ -f "$final_path/conf/zabbix.conf.php" ];then + ynh_secure_remove "$final_path/conf/zabbix.conf.php" +fi #================================================= # CREATE A MYSQL DATABASE