Forráskód Böngészése

Update install cp with --remove-destination to force new conf file

Mickael-Martin 5 éve
szülő
commit
458af1bb7a
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      scripts/install

+ 1 - 1
scripts/install

@@ -286,7 +286,7 @@ systemctl reload nginx
 ynh_script_progression -m "Generate zabbix config files" -w 5
 ynh_script_progression -m "Generate zabbix config files" -w 5
 
 
 confServerPath=$(find /var/cache/yunohost/ -name "usr_share_zabbix_conf_zabbix.conf.php")
 confServerPath=$(find /var/cache/yunohost/ -name "usr_share_zabbix_conf_zabbix.conf.php")
-cp "$confServerPath" /usr/share/zabbix/conf/zabbix.conf.php
+cp --remove-destination "$confServerPath" /usr/share/zabbix/conf/zabbix.conf.php
 ynh_replace_string --match_string="db_name" --replace_string="$db_name" --target_file=/usr/share/zabbix/conf/zabbix.conf.php
 ynh_replace_string --match_string="db_name" --replace_string="$db_name" --target_file=/usr/share/zabbix/conf/zabbix.conf.php
 ynh_replace_string --match_string="db_user" --replace_string="$db_user" --target_file=/usr/share/zabbix/conf/zabbix.conf.php
 ynh_replace_string --match_string="db_user" --replace_string="$db_user" --target_file=/usr/share/zabbix/conf/zabbix.conf.php
 ynh_replace_string --match_string="db_pwd" --replace_string="$db_pwd" --target_file=/usr/share/zabbix/conf/zabbix.conf.php
 ynh_replace_string --match_string="db_pwd" --replace_string="$db_pwd" --target_file=/usr/share/zabbix/conf/zabbix.conf.php