chore: Syntax fixes

This commit is contained in:
Kyle Gospodnetich 2024-04-21 08:01:37 -07:00
parent 25d8e48375
commit 690b2d5287

View File

@ -138,7 +138,7 @@ install-ollama:
IMAGE=latest IMAGE=latest
CUSTOM_ARGS="AddDevice=nvidia.com/gpu=all" CUSTOM_ARGS="AddDevice=nvidia.com/gpu=all"
;; ;;
"AMD (ROCm)") "AMD (ROCm)")
IMAGE=rocm IMAGE=rocm
read -r -d '' CUSTOM_ARGS <<-'EOF' read -r -d '' CUSTOM_ARGS <<-'EOF'
@ -147,12 +147,12 @@ install-ollama:
EOF EOF
;; ;;
esac esac
read -r -d '' QUADLET <<-EOF read -r -d '' QUADLET <<-EOF
[Unit] [Unit]
Description=The Ollama container Description=The Ollama container
After=local-fs.target After=local-fs.target
[Service] [Service]
Restart=always Restart=always
TimeoutStartSec=60 TimeoutStartSec=60
@ -160,7 +160,7 @@ install-ollama:
ExecStartPre=/bin/systemctl --user enable podman.socket ExecStartPre=/bin/systemctl --user enable podman.socket
# Ensure that the dir exists # Ensure that the dir exists
ExecStartPre=-mkdir -p %h/.ollama ExecStartPre=-mkdir -p %h/.ollama
[Container] [Container]
ContainerName=ollama ContainerName=ollama
PublishPort=11434:11434 PublishPort=11434:11434
@ -173,10 +173,10 @@ install-ollama:
PodmanArgs=--ulimit=host PodmanArgs=--ulimit=host
PodmanArgs=--security-opt=label=disable PodmanArgs=--security-opt=label=disable
PodmanArgs=--cgroupns=host PodmanArgs=--cgroupns=host
Image=docker.io/ollama/ollama:${IMAGE} Image=docker.io/ollama/ollama:${IMAGE}
${CUSTOM_ARGS} ${CUSTOM_ARGS}
[Install] [Install]
RequiredBy=default.target RequiredBy=default.target
EOF EOF