fix : #305 safer container management
This commit is contained in:
+6
-5
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user