diff --git a/manifest.json b/manifest.json index 97786d4..0179e67 100644 --- a/manifest.json +++ b/manifest.json @@ -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", diff --git a/scripts/remove b/scripts/remove index b73d2ba..20e5597 100755 --- a/scripts/remove +++ b/scripts/remove @@ -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 #=================================================