1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/airsonic_ynh.git synced 2024-09-03 18:06:14 +02:00

[fix] Add --purge

This commit is contained in:
Galettofraise 2022-02-23 14:51:00 +01:00
parent a03966d2b3
commit 24e2f6113c

View file

@ -64,6 +64,16 @@ ynh_script_progression --message="Removing NGINX web server configuration..." --
# Remove the dedicated NGINX config
ynh_remove_nginx_config
#================================================
# 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="/home/yunohost.app/$app"
fi
#=================================================
# REMOVE LOGROTATE CONFIGURATION