mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 17:21:04 +00:00
Revert container stop order to original
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -77,9 +77,8 @@ echo "All images pulled successfully." >>"$LOGFILE"
|
|||||||
|
|
||||||
# Stop and remove existing Coolify containers to prevent conflicts
|
# Stop and remove existing Coolify containers to prevent conflicts
|
||||||
# This handles both old installations (project "source") and new ones (project "coolify")
|
# This handles both old installations (project "source") and new ones (project "coolify")
|
||||||
# Stop coolify last to allow upgrade process to complete gracefully
|
|
||||||
echo "Stopping existing Coolify containers..." >>"$LOGFILE"
|
echo "Stopping existing Coolify containers..." >>"$LOGFILE"
|
||||||
for container in coolify-db coolify-redis coolify-realtime coolify; do
|
for container in coolify coolify-db coolify-redis coolify-realtime; do
|
||||||
if docker ps -a --format '{{.Names}}' | grep -q "^${container}$"; then
|
if docker ps -a --format '{{.Names}}' | grep -q "^${container}$"; then
|
||||||
docker stop "$container" >>"$LOGFILE" 2>&1 || true
|
docker stop "$container" >>"$LOGFILE" 2>&1 || true
|
||||||
docker rm "$container" >>"$LOGFILE" 2>&1 || true
|
docker rm "$container" >>"$LOGFILE" 2>&1 || true
|
||||||
|
|||||||
@@ -175,8 +175,7 @@ echo " All images pulled successfully."
|
|||||||
log_section "Step 4/6: Stopping existing containers"
|
log_section "Step 4/6: Stopping existing containers"
|
||||||
echo ""
|
echo ""
|
||||||
echo "4/6 Stopping existing containers..."
|
echo "4/6 Stopping existing containers..."
|
||||||
# Stop coolify last to allow upgrade process to complete gracefully
|
for container in coolify coolify-db coolify-redis coolify-realtime; do
|
||||||
for container in coolify-db coolify-redis coolify-realtime coolify; do
|
|
||||||
if docker ps -a --format '{{.Names}}' | grep -q "^${container}$"; then
|
if docker ps -a --format '{{.Names}}' | grep -q "^${container}$"; then
|
||||||
echo " - Stopping ${container}..."
|
echo " - Stopping ${container}..."
|
||||||
log "Stopping container: ${container}"
|
log "Stopping container: ${container}"
|
||||||
|
|||||||
Reference in New Issue
Block a user