Mickael-Martin 6 лет назад
Родитель
Сommit
cad91dab26
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      scripts/install

+ 4 - 3
scripts/install

@@ -286,12 +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 /var/www/zabbix/conf/zabbix.conf.php ];then
+    unlink /var/www/zabbix/conf/zabbix.conf.php
+fi
+
 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 "<?php
 // Zabbix GUI configuration file.