From 67d29dbad8e7f319a17783d7f784442e879af31a Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 26 Apr 2022 14:59:26 -0700 Subject: [PATCH] systemd-detect-virt returns false when none detected --- scripts/cloudron-setup | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/cloudron-setup b/scripts/cloudron-setup index d260c3500..f701d3a56 100755 --- a/scripts/cloudron-setup +++ b/scripts/cloudron-setup @@ -46,8 +46,7 @@ if [[ "$(uname -m)" != "x86_64" ]]; then exit 1 fi -cvirt=$(systemd-detect-virt --container) -if [[ "${cvirt}" != "none" ]]; then +if cvirt=$(systemd-detect-virt --container); then echo "Error: Cloudron does not support ${cvirt}, only runs on bare metal or with full hardware virtualization" exit 1 fi