1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pleroma_ynh.git synced 2024-09-03 20:15:59 +02:00

Fix datadir removal

This commit is contained in:
yalh76 2022-03-01 02:31:26 +01:00
parent e15fa7f82b
commit 4ee7f86669

View file

@ -68,10 +68,12 @@ ynh_secure_remove --file="$final_path"
# REMOVE DATA DIR # REMOVE DATA DIR
#================================================= #=================================================
# Remove the data directory # Remove the data directory if --purge option is used
# We doesn't support --purge cause it's not relevant here if [ "${YNH_APP_PURGE:-0}" -eq 1 ]
ynh_script_progression --message="Removing app data directory..." --time --weight=1 then
ynh_secure_remove --file="$datadir" ynh_script_progression --message="Removing app data directory..."
ynh_secure_remove --file="$datadir"
fi
#================================================= #=================================================
# REMOVE NGINX CONFIGURATION # REMOVE NGINX CONFIGURATION