1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/fider_ynh.git synced 2024-09-03 18:36:11 +02:00

Replace rm -rf with ynh_secure_remove

This commit is contained in:
Salamandar 2022-12-04 15:45:27 +01:00 committed by GitHub
parent 040d0b15a9
commit 6dcbefbf96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
# Moved fron /opt to /var/www
if [ -d "/opt/yunohost/$app" ]; then
rm -rf "$final_path"
ynh_secure_remove -f "$final_path"
mv "/opt/yunohost/$app" "$final_path"
fi