mirror of
https://github.com/YunoHost-Apps/gitea_ynh.git
synced 2024-09-03 20:36:22 +02:00
[fix] Add --purge
This commit is contained in:
parent
d15c6ada1d
commit
9098d79553
1 changed files with 12 additions and 0 deletions
|
@ -38,6 +38,18 @@ ynh_secure_remove --file="/var/log/$app"
|
||||||
# Remove the app-specific logrotate config
|
# Remove the app-specific logrotate config
|
||||||
ynh_remove_logrotate
|
ynh_remove_logrotate
|
||||||
|
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# 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="$DATADIR"
|
||||||
|
fi
|
||||||
|
|
||||||
# Remove nginx config
|
# Remove nginx config
|
||||||
ynh_script_progression --message="Removing nginx configuration..."
|
ynh_script_progression --message="Removing nginx configuration..."
|
||||||
ynh_remove_nginx_config
|
ynh_remove_nginx_config
|
||||||
|
|
Loading…
Add table
Reference in a new issue