Browse Source

Update

main
Bastian (BaM) 3 months ago
parent
commit
2c46152413
  1. 2
      auto-boot-ollama-pc.sh

2
auto-boot-ollama-pc.sh

@ -15,7 +15,7 @@ NC_CMD="nc" # netcat
DOCKER="docker"
# Ensure only one instance of this script is running
if pgrep -f $SCRIPTNAME 1>/dev/null; then
if [ "$(pgrep -f $SCRIPTNAME)" != $$ ]; then
echo "Killing running instance of $SCRIPTNAME..."
pgrep -f -- "$SCRIPTNAME" | grep -vw "$$" | xargs -r kill -KILL
fi

Loading…
Cancel
Save