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:
parent
acc8f9d1bf
commit
5f5745a464
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue