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
32add857
"tests/git@developer.sourcefind.cn:OpenDAS/mmcv.git" did not exist on "025ee9f5e62ed996359bffe214a6bfa588117abe"
Commit
32add857
authored
Nov 16, 2023
by
Michael Yang
Browse files
placeholder environment variables
parent
585f9c01
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 @
32add857
...
@@ -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