fix install script error on linux
This commit is contained in:
parent
dc84b20d6b
commit
a185b29719
1 changed files with 0 additions and 10 deletions
|
@ -97,16 +97,6 @@ Environment="PATH=$PATH"
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
mkdir -p /etc/systemd/system/ollama.service.d
|
|
||||||
cat <<EOF | $SUDO tee /etc/systemd/system/ollama.service.d/environment.conf >/dev/null
|
|
||||||
[Service]
|
|
||||||
#Environment="OLLAMA_HOST="
|
|
||||||
#Environment="OLLAMA_ORIGINS="
|
|
||||||
#Environment="OLLAMA_MODELS="
|
|
||||||
#Environment="HTTPS_PROXY="
|
|
||||||
EOF
|
|
||||||
|
|
||||||
SYSTEMCTL_RUNNING="$(systemctl is-system-running || true)"
|
SYSTEMCTL_RUNNING="$(systemctl is-system-running || true)"
|
||||||
case $SYSTEMCTL_RUNNING in
|
case $SYSTEMCTL_RUNNING in
|
||||||
running|degraded)
|
running|degraded)
|
||||||
|
|
Loading…
Reference in a new issue