Browse Source

ignore systemctl is-system-running exit code

api
Michael Yang 3 years ago
parent
commit
1b9dcab3ab
  1. 2
      scripts/install.sh

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

Loading…
Cancel
Save