From 306146d3ce7d57bc5cd80ee7e1c58b93ceb69fa9 Mon Sep 17 00:00:00 2001 From: Mickael-Martin Date: Fri, 31 May 2019 13:31:06 +0200 Subject: [PATCH] remove existing file if exist --- scripts/install | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 020175f..9f9c4b8 100644 --- a/scripts/install +++ b/scripts/install @@ -119,7 +119,6 @@ sed -i "s/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/g" /etc/locale.gen locale-gen ln -s /usr/share/zabbix $final_path -#rm $final_path/conf/zabbix.conf.php #================================================= # CREATE A MYSQL DATABASE @@ -287,6 +286,13 @@ fi ### `ynh_replace_string` is used to replace a string in a file. ### (It's compatible with sed regular expressions syntax) +if [ -f /etc/zabbix/web/zabbix.conf.php ];then + rm -f /etc/zabbix/web/zabbix.conf.php +fi +if [ -f /var/www/zabbix/conf/zabbix.conf.php ];then + rm -f /var/www/zabbix/conf/zabbix.conf.php +fi + echo "