mirror of
https://github.com/YunoHost-Apps/h5ai_ynh.git
synced 2024-09-03 20:36:25 +02:00
Implement --purge in the remove script
This commit is contained in:
parent
cc770f3fee
commit
568764bdaf
1 changed files with 6 additions and 0 deletions
|
@ -33,6 +33,12 @@ ynh_script_progression --message="Removing app main directory..." --weight=3
|
|||
# Remove the app directory securely
|
||||
ynh_secure_remove --file="$final_path/_h5ai"
|
||||
|
||||
# Remove the data directory if --purge option is used
|
||||
if [ "${YNH_APP_PURGE:-0}" -eq 1 ]
|
||||
then
|
||||
ynh_secure_remove --file="$final_path"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# REMOVE NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue