mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-07 11:45:21 +00:00
ignore systemctl is-system-running exit code
This commit is contained in:
parent
86279f4ae3
commit
1b9dcab3ab
@ -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..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user