Browse Source

Fix SSH command execution syntax for ollama service startup

main
Bastian (BaM) 3 months ago
parent
commit
5d26effe64
  1. 2
      scripts/auto-boot-ollama-host.lua

2
scripts/auto-boot-ollama-host.lua

@ -175,7 +175,7 @@ local function main()
if port_is_up(OLLAMA_HOST, SSH_PORT, 60) then if port_is_up(OLLAMA_HOST, SSH_PORT, 60) then
log("SSH is reachable. Starting ollama service...") log("SSH is reachable. Starting ollama service...")
socket.sleep(1) socket.sleep(1)
ssh("wsl.exe -d Debian -- sudo systemctl enable --now ollama && sudo systemctl start ollama", "micro", OLLAMA_HOST, SSH_PORT, SSH_IDENTITY_FILE) ssh("wsl.exe -d Debian -- 'sudo systemctl enable --now ollama && sudo systemctl start ollama'", "micro", OLLAMA_HOST, SSH_PORT, SSH_IDENTITY_FILE)
end end
end end
end end

Loading…
Cancel
Save