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

use ynh_secure_remove instead of rm -r

This commit is contained in:
OniriCorpe 2024-01-22 03:57:50 +01:00
parent acc8f9d1bf
commit 5f5745a464

View file

@ -39,7 +39,7 @@ ynh_script_progression --message="Ensuring downward compatibility..."
if [ -d "/var/lib/$app" ]; then
ynh_print_info --message="Moving the data folder from '/var/lib/$app' to '$data_dir'"
mv "/var/lib/$app" "$data_dir"
rm -r "/var/lib/$app"
ynh_secure_remove "/var/lib/$app"
fi
#=================================================