From b7804b6a1a42306649b51f0cbf10a0b2877223b0 Mon Sep 17 00:00:00 2001 From: pvincent Date: Tue, 18 Aug 2026 12:40:24 +0400 Subject: [PATCH] install2 --- lib/functions.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions.bash b/lib/functions.bash index c8b769a..7a025d4 100644 --- a/lib/functions.bash +++ b/lib/functions.bash @@ -8,7 +8,7 @@ function assert_root { } function assert_container { - cat /proc/self/cgroup | grep -qE'session-c[0-9]+\.scope' + [[ $(systemd-detect-virt -c) == lxc ]] } function assert_system_mode {