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:
parent
6247e42dfc
commit
c6edb5c966
1 changed files with 3 additions and 4 deletions
|
@ -58,10 +58,9 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
|||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
||||
# Remove www file
|
||||
pushd "$final_path"
|
||||
ynh_exec_warn_less sudo -u $app rm -rf *
|
||||
popd
|
||||
# Void and recreate final_path
|
||||
ynh_secure_remove --file="$final_path"
|
||||
ynh_exec_warn_less sudo -u $app mkdir "$final_path"
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
|
|
Loading…
Add table
Reference in a new issue