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:
parent
1d7286c34a
commit
795df0d2b1
1 changed files with 7 additions and 2 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue