mirror of
https://github.com/YunoHost-Apps/framaforms_ynh.git
synced 2024-09-03 18:36:12 +02:00
[fix] Add --purge
This commit is contained in:
parent
36929f7710
commit
64bdedb706
1 changed files with 6 additions and 0 deletions
|
@ -73,6 +73,12 @@ ynh_script_progression --message="Removing app data directory..." --weight=1
|
|||
# Remove the app directory securely
|
||||
ynh_secure_remove --file="/home/yunohost.app/$app"
|
||||
|
||||
# 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 THE CRON FILE
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue