From 9ab6335a3c11d84e38ee41f53aec180c2a8bd62d Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sun, 16 Nov 2025 07:00:45 -0700 Subject: [PATCH] Pull and the build the container while it's still up, reducing downtime. --- bin/manage.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/manage.sh b/bin/manage.sh index cf76b74..c767b42 100755 --- a/bin/manage.sh +++ b/bin/manage.sh @@ -179,11 +179,6 @@ if [[ -n $up || -n $down || -n $build || -n $pull || -n $maintenance ]]; then fi fi - # Shut off container. - if [[ $down == "Y" ]]; then - [ -e docker-compose.yml ] && docker compose down - fi - # Update container from remote source such as Docker Hub. if [[ $pull == "Y" ]]; then [ -e docker-compose.yml ] && docker compose pull @@ -194,6 +189,11 @@ if [[ -n $up || -n $down || -n $build || -n $pull || -n $maintenance ]]; then [ -e Dockerfile ] && docker compose build fi + # Shut off container. + if [[ $down == "Y" ]]; then + [ -e docker-compose.yml ] && docker compose down + fi + # Run the container as a daemon. if [[ $up == "Y" ]]; then [ -e docker-compose.yml ] && docker compose up -d