From 41a18db59c5e4b52ee71c1ae262568def35d8847 Mon Sep 17 00:00:00 2001 From: Mickael-Martin Date: Thu, 26 Nov 2020 13:28:47 +0100 Subject: [PATCH] move rm to ynh_secure_remove --- scripts/restore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index 4cb49ba..939df04 100644 --- a/scripts/restore +++ b/scripts/restore @@ -33,7 +33,7 @@ final_path="/var/www/zabbix" ### If the app uses nginx as web server (written in HTML/PHP in most cases), the final path should be "/var/www/$app". ### If the app provides an internal web server (or uses another application server such as uwsgi), the final path should be "/opt/yunohost/$app" -rm -fr $final_path +ynh_secure_remove $final_path #================================================= # STORE SETTINGS FROM MANIFEST @@ -64,7 +64,7 @@ ynh_replace_string --match_string="# fr_FR.UTF-8 UTF-8" --replace_string="fr_FR. locale-gen ln -s /usr/share/zabbix /var/www/zabbix -rm $final_path/conf/zabbix.conf.php +ynh_secure_remove $final_path/conf/zabbix.conf.php ynh_app_setting_set $app final_path $final_path