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 #96 from YunoHost-Apps/testing

[fix] Add --purge
This commit is contained in:
Krakinou 2022-02-28 21:43:13 +01:00 committed by GitHub
commit c0a90878d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View file

@ -6,7 +6,7 @@
"en": "Browsing, reading and downloading eBooks using a Calibre database",
"fr": "Explorer, lire et télécharger des eBooks à partir d'une base de données Calibre"
},
"version": "0.96.16~ynh1",
"version": "0.96.16~ynh2",
"url": "https://github.com/janeczku/calibre-web",
"upstream": {
"version": "0.6.16",

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