"tests/git@developer.sourcefind.cn:OpenDAS/mmcv.git" did not exist on "025ee9f5e62ed996359bffe214a6bfa588117abe"
Commit 32add857 authored by Michael Yang's avatar Michael Yang
Browse files

placeholder environment variables

parent 585f9c01
...@@ -97,6 +97,16 @@ Environment="PATH=$PATH" ...@@ -97,6 +97,16 @@ 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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment