1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/photoview_ynh.git synced 2024-09-03 20:05:55 +02:00

Merge pull request #20 from Galettofraise/purge

[fix] Add --purge
This commit is contained in:
Salamandar 2024-02-28 17:13:22 +01:00 committed by GitHub
commit 1b1a4c75ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,12 +69,15 @@ ynh_script_progression --message="Removing app main directory..." --weight=1
ynh_secure_remove --file="$final_path" ynh_secure_remove --file="$final_path"
#================================================= #=================================================
# REMOVE APP DATA DIR # REMOVE DATA DIR
#================================================= #=================================================
ynh_script_progression --message="Removing app data directory..." --weight=1
# Remove the app directory securely # Remove the data directory if --purge option is used
ynh_secure_remove --file="$data_path" if [ "${YNH_APP_PURGE:-0}" -eq 1 ]
then
ynh_script_progression --message="Removing app data directory..." --time --weight=1
ynh_secure_remove --file="$data_path"
fi
#================================================= #=================================================
# REMOVE NGINX CONFIGURATION # REMOVE NGINX CONFIGURATION