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

set virt detection for swap creatiom

This commit is contained in:
rosbeef andino 2023-08-08 14:57:11 +00:00 committed by GitHub
parent f841059b8d
commit e8157e08a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ fi
if ynh_exec_warn_less yunohost service status "$app-sidekiq" >/dev/null
then
ynh_script_progression --message="Removing $app-sidekiq service integration..." --weight=1
yunohost service remove "$app-sidekiq"
yuhoservice remove "$app-sidekiq"
fi
if ynh_exec_warn_less yunohost service status "$app-streaming" >/dev/null
@ -57,7 +57,7 @@ ynh_remove_nodejs
# Remove swap
ynh_del_swap
if [ -n "$(grep 'kthreadd' /proc/2/status 2>/dev/null)" ]; then
if [ "$(systemd-detect-virt)" != "lxc" ]; then
ynh_del_swap