Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
ad8659b9
Unverified
Commit
ad8659b9
authored
Nov 17, 2023
by
Michael Yang
Committed by
GitHub
Nov 17, 2023
Browse files
Merge pull request #1161 from jmorganca/mxyng/systemd-placeholder
placeholder environment variables
parents
c1bbf5dd
32add857
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
scripts/install.sh
scripts/install.sh
+10
-0
No files found.
scripts/install.sh
View file @
ad8659b9
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment