From 92531ff675fc61534965b36bbf43b4221e87a4e2 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sun, 4 Aug 2024 13:36:05 -0700 Subject: [PATCH] proxmox: fix detection --- install/docker/install-intel-npu.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/install/docker/install-intel-npu.sh b/install/docker/install-intel-npu.sh index 1a6d3e2e3..50cc4d3b4 100644 --- a/install/docker/install-intel-npu.sh +++ b/install/docker/install-intel-npu.sh @@ -7,16 +7,13 @@ fi UBUNTU_22_04=$(lsb_release -r | grep "22.04") UBUNTU_24_04=$(lsb_release -r | grep "24.04") -# check bookworm and bullseye if UBUNTU vars are not set. -# this will cover proxmox. if [ -z "$UBUNTU_22_04" ] then - UBUNTU_22_04=$(cat /etc/os-release | grep bullseye) -fi - -if [ -z "$UBUNTU_24_04" ] -then - UBUNTU_24_04=$(cat /etc/os-release | grep bookworm) + # proxmox is compatible with ubuntu 22.04, check for /etc/pve directory + if [ -d "/etc/pve" ] + then + UBUNTU_22_04=true + fi fi # needs either ubuntu 22.0.4 or 24.04