#!/usr/bin/env bash # Trace one env var through the whole add-on plumbing, to answer "I set the option and nothing # happened". # # This is the single highest-value diagnostic for this repo, because the plumbing has four # separate stages and a value can be present at stage 3 and absent at stage 4 while every script # involved reports success. That exact case shipped: MAX_RES was correctly written to # /run/s6/container_environment/MAX_RES six seconds before Xvfb started, and Xvfb still came up # at the base-image default. # # The four stages: # 1. /data/options.json the user's saved add-on options # 2. injected export block .templates/00-global_var.sh writes `export