Commit bb14e635 authored by Aleks's avatar Aleks
Browse files

rm -rf -> ynh_secure_remove

parent f345ea0a
......@@ -26,14 +26,14 @@ opt_path=$(ynh_app_setting_get $app opt_path)
ynh_script_progression "Removing static site..."
rm -rf $final_path
ynh_secure_remove $final_path
ynh_remove_nginx_config
ynh_script_progression "Removing automatic vpn certificate renewal..."
rm -rf $opt_path
rm -rf /etc/cron.daily/$app-renew-cert
ynh_secure_remove $opt_path
ynh_secure_remove /etc/cron.daily/$app-renew-cert
#=================================================
# REMOVE DEPENDENCIES
......
......@@ -101,7 +101,7 @@ fi
ynh_script_progression "Installing static site..."
rm -rf $final_path
ynh_secure_remove $final_path
mkdir -p $final_path
cp -r ../sources/. $final_path
chown -R $app_user: $final_path
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment