Merge pull request #316 from Fosowl/dev

fix : #305  safer container management
This commit is contained in:
Martin
2025-06-13 17:55:57 +02:00
committed by GitHub
+6 -5
View File
@@ -83,11 +83,12 @@ if [ ! -f "docker-compose.yml" ]; then
exit 1 exit 1
fi fi
# Stop all running containers to ensure a clean state # Stop only the backend container if it's running to ensure a clean state
echo "Warning: stopping all docker containers (t-4 seconds)..." if docker ps --format '{{.Names}}' | grep -q '^backend$'; then
sleep 4 echo "New start: (re)starting backend container..."
docker stop $(docker ps -a -q) docker stop backend
echo "All containers stopped" echo "Backend container stopped."
fi
# export searxng secret key (cross-platform) # export searxng secret key (cross-platform)
if command -v openssl &> /dev/null; then if command -v openssl &> /dev/null; then