fix(install): ensure update script always pulls latest imgs

This commit is contained in:
Jake Turner 2026-01-11 13:45:12 -08:00 committed by Jake Turner
parent 275ca80931
commit 80a1d0eef4

View File

@ -102,6 +102,12 @@ ensure_docker_compose_file_exists() {
}
force_recreate() {
echo -e "${YELLOW}#${RESET} Pulling the latest Docker images..."
if ! docker compose -f /opt/project-nomad/compose.yml pull; then
echo -e "${RED}#${RESET} Failed to pull the latest Docker images. Please check your network connection and the Docker registry status, then try again."
exit 1
fi
echo -e "${YELLOW}#${RESET} Forcing recreation of containers..."
if ! docker compose -f /opt/project-nomad/compose.yml up -d --force-recreate; then
echo -e "${RED}#${RESET} Failed to recreate containers. Please check the Docker logs for more details."