1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/calibreweb_ynh.git synced 2024-09-03 18:16:20 +02:00

Merge pull request #95 from Galettofraise/purge

[fix] Add --purge
This commit is contained in:
Krakinou 2022-02-28 21:41:01 +01:00 committed by GitHub
commit 3affa5e01d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,6 +61,17 @@ ynh_remove_app_dependencies
ynh_script_progression --message="Removing $final_path..." --weight=1
ynh_secure_remove --file="$final_path"
#=================================================
# REMOVE DATA DIR
#=================================================
# Remove the data directory if --purge option is used
if [ "${YNH_APP_PURGE:-0}" -eq 1 ]
then
ynh_script_progression --message="Removing app data directory..." --time --weight=1
ynh_secure_remove --file="$calibre_dir"
fi
#=================================================
# REMOVE NGINX CONFIGURATION
#=================================================