Unverified Commit 7de0c834 authored by Michael Yang's avatar Michael Yang Committed by GitHub
Browse files

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

ignore systemctl is-system-running exit code
parents 86279f4a 1b9dcab3
...@@ -86,7 +86,7 @@ Environment="HOME=/usr/share/ollama" ...@@ -86,7 +86,7 @@ Environment="HOME=/usr/share/ollama"
[Install] [Install]
WantedBy=default.target WantedBy=default.target
EOF EOF
SYSTEMCTL_RUNNING="$(systemctl is-system-running)" SYSTEMCTL_RUNNING="$(systemctl is-system-running || true)"
case $SYSTEMCTL_RUNNING in case $SYSTEMCTL_RUNNING in
running|degraded) running|degraded)
status "Enabling and starting ollama service..." status "Enabling and starting ollama service..."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment