Skip to content

Commit 7660631

Browse files
authored
Update ollama.sh
1 parent d5a23a3 commit 7660631

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ct/ollama.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ function update_script() {
2828
fi
2929
RELEASE=$(curl -fsSL https://api.github.com/repos/ollama/ollama/releases/latest | grep "tag_name" | awk -F '"' '{print $4}')
3030
if [[ ! -f /opt/Ollama_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/Ollama_version.txt)" ]]; then
31+
if [[ ! -f /opt/Ollama_version.txt ]]; then
32+
touch /opt/Ollama_version.txt
33+
fi
3134
msg_info "Stopping Services"
3235
systemctl stop ollama
3336
msg_ok "Services Stopped"

0 commit comments

Comments
 (0)