From 1b9dcab3abb192837ce41e2a6bab9bbe54f1a00c Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Mon, 25 Sep 2023 15:47:39 -0700 Subject: [PATCH] ignore systemctl is-system-running exit code --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 1ee81d4c..82eca656 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -86,7 +86,7 @@ Environment="HOME=/usr/share/ollama" [Install] WantedBy=default.target EOF - SYSTEMCTL_RUNNING="$(systemctl is-system-running)" + SYSTEMCTL_RUNNING="$(systemctl is-system-running || true)" case $SYSTEMCTL_RUNNING in running|degraded) status "Enabling and starting ollama service..."