mirror of
https://github.com/YunoHost-Apps/zabbix_ynh.git
synced 2024-09-03 20:36:14 +02:00
remove existing file if exist
This commit is contained in:
parent
37d4bd16e9
commit
306146d3ce
1 changed files with 7 additions and 1 deletions
|
@ -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
|
locale-gen
|
||||||
|
|
||||||
ln -s /usr/share/zabbix $final_path
|
ln -s /usr/share/zabbix $final_path
|
||||||
#rm $final_path/conf/zabbix.conf.php
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE A MYSQL DATABASE
|
# CREATE A MYSQL DATABASE
|
||||||
|
@ -287,6 +286,13 @@ fi
|
||||||
### `ynh_replace_string` is used to replace a string in a file.
|
### `ynh_replace_string` is used to replace a string in a file.
|
||||||
### (It's compatible with sed regular expressions syntax)
|
### (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 "<?php
|
echo "<?php
|
||||||
// Zabbix GUI configuration file.
|
// Zabbix GUI configuration file.
|
||||||
global \$DB;
|
global \$DB;
|
||||||
|
|
Loading…
Add table
Reference in a new issue