Update install.sh

This commit is contained in:
SpudGunMan
2025-11-08 12:13:15 -08:00
parent 862347cbec
commit df43b61a0c
+8
View File
@@ -56,6 +56,14 @@ if [[ $NOPE -eq 1 ]]; then
sudo rm -f /etc/systemd/system/ollama.service
sudo rm -rf /usr/local/bin/ollama
sudo rm -rf ~/.ollama
# remove ollama service account if exists
if id ollama &>/dev/null; then
sudo userdel ollama || true
fi
# remove ollama group if exists
if getent group ollama &>/dev/null; then
sudo groupdel ollama || true
fi
echo "Ollama removed."
else
echo "Ollama not removed."