From e8157e08a970e07579dc7cb5737292c0dff9ad19 Mon Sep 17 00:00:00 2001 From: rosbeef andino Date: Tue, 8 Aug 2023 14:57:11 +0000 Subject: [PATCH] set virt detection for swap creatiom --- scripts/remove | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/remove b/scripts/remove index d646558..9eb3e51 100644 --- a/scripts/remove +++ b/scripts/remove @@ -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