mirror of
https://github.com/ollama/ollama.git
synced 2025-06-29 17:10:52 +02:00
ignore systemctl is-system-running exit code
This commit is contained in:
@ -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..."
|
||||
|
Reference in New Issue
Block a user