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
c0b1bf75
Unverified
Commit
c0b1bf75
authored
Sep 29, 2023
by
Michael Yang
Committed by
GitHub
Sep 29, 2023
Browse files
Merge pull request #606 from jmorganca/mxyng/install.sh-2
ordered list of install locations
parents
cdfeb165
29c056ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
scripts/install.sh
scripts/install.sh
+8
-4
No files found.
scripts/install.sh
View file @
c0b1bf75
...
...
@@ -54,9 +54,13 @@ fi
status
"Downloading ollama..."
curl
--fail
--show-error
--location
--progress-bar
-o
$TEMP_DIR
/ollama
"https://ollama.ai/download/ollama-linux-
$ARCH
"
status
"Installing ollama to /usr/bin..."
$SUDO
install
-o0
-g0
-m755
-d
/usr/bin
$SUDO
install
-o0
-g0
-m755
$TEMP_DIR
/ollama /usr/bin/ollama
for
BINDIR
in
/usr/local/bin /usr/bin /bin
;
do
echo
$PATH
|
grep
-q
$BINDIR
&&
break
||
continue
done
status
"Installing ollama to
$BINDIR
..."
$SUDO
install
-o0
-g0
-m755
-d
$BINDIR
$SUDO
install
-o0
-g0
-m755
$TEMP_DIR
/ollama
$BINDIR
/ollama
install_success
()
{
status
'Install complete. Run "ollama" from the command line.'
;
}
trap
install_success EXIT
...
...
@@ -76,7 +80,7 @@ Description=Ollama Service
After=network-online.target
[Service]
ExecStart=
/usr/bin
/ollama serve
ExecStart=
$BINDIR
/ollama serve
User=ollama
Group=ollama
Restart=always
...
...
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