1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/framaforms_ynh.git synced 2024-09-03 18:36:12 +02:00

[fix] IN this case we want remove datadir in every situation

This commit is contained in:
ljf (zamentur) 2022-02-27 21:40:42 +01:00 committed by GitHub
parent 64bdedb706
commit b0307f9435
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,14 +71,8 @@ ynh_remove_fpm_config
ynh_script_progression --message="Removing app data directory..." --weight=1 ynh_script_progression --message="Removing app data directory..." --weight=1
# Remove the app directory securely # 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" ynh_secure_remove --file="$datadir"
fi
#================================================= #=================================================
# REMOVE THE CRON FILE # REMOVE THE CRON FILE
#================================================= #=================================================