1
0
Fork 0
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:
Tagadda 2022-08-20 20:31:09 +00:00
parent cc770f3fee
commit 568764bdaf

View file

@ -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
#=================================================