소스 검색

Merge pull request #595 from jmorganca/mxyng/install.sh

ignore systemctl is-system-running exit code
Michael Yang 1 년 전
부모
커밋
7de0c8345d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      scripts/install.sh

+ 1 - 1
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..."