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

Trying to use ynh_secure_remove

This commit is contained in:
Limezy 2023-01-23 08:43:38 +07:00
parent 6247e42dfc
commit c6edb5c966

View file

@ -58,10 +58,9 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================
# Remove www file # Void and recreate final_path
pushd "$final_path" ynh_secure_remove --file="$final_path"
ynh_exec_warn_less sudo -u $app rm -rf * ynh_exec_warn_less sudo -u $app mkdir "$final_path"
popd
if [ "$upgrade_type" == "UPGRADE_APP" ] if [ "$upgrade_type" == "UPGRADE_APP" ]
then then