1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mastodon_ynh.git synced 2024-09-03 19:46:02 +02:00

Update remove

This commit is contained in:
rosbeef andino 2022-12-16 19:02:02 +00:00 committed by GitHub
parent 54224caaee
commit 4d0df4a4aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,7 +104,13 @@ ynh_secure_remove --file="/etc/cron.d/$app"
# Remove swap
ynh_del_swap
if [ -n "$(grep 'kthreadd' /proc/2/status 2>/dev/null)" ]; then
ynh_del_swap
else
ynh_script_progression --message="No swap will be deleted as you are inside a container. Please take care of having more than 2,5G memory available..."
fi
#=================================================
# GENERIC FINALIZATION
#=================================================