1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gogs_ynh.git synced 2024-09-03 20:36:23 +02:00

Update remove

This commit is contained in:
ericgaspar 2021-11-08 22:52:42 +01:00
parent 1d7286c34a
commit 795df0d2b1
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -61,10 +61,15 @@ ynh_script_progression --message="Removing app main directory..." --weight=3
ynh_secure_remove --file="$final_path"
#=================================================
# REMOVE VARIOUS FILES
# REMOVE DATA DIR
#=================================================
ynh_secure_remove --file="$datadir"
# Remove the app data directory with the command `yunohost app remove gogs --purge`
if [ "${YNH_APP_PURGE:-0}" -eq 1 ]
then
ynh_script_progression --message="Removing $app data directory..." --weight=2
ynh_secure_remove --file="$datadir"
fi
ynh_secure_remove --file="/var/log/$app"