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

ignore systemctl is-system-running exit code
This commit is contained in:
Michael Yang 2023-09-25 15:49:47 -07:00 committed by GitHub
commit 7de0c8345d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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..."