1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zabbix_ynh.git synced 2024-09-03 20:36:14 +02:00

check if $final_path/conf/zabbix.conf.php before attempt to delete it

This commit is contained in:
Mickael-Martin 2020-11-26 20:13:43 +01:00
parent 3f367e981b
commit e17c086ce0

View file

@ -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