infra: mirror LAN dev secrets under $HOME for snap-confined Docker #85

Merged
admin_emi merged 2 commits from fix/lan-dev-secrets-snap-confinement into dev 2026-07-25 07:16:10 +00:00
Showing only changes of commit 40d3b5f5dc - Show all commits

View file

@ -137,9 +137,11 @@ render_thermograph_secrets() {
# prod/beta (apt-installed Docker, no snap confinement) leave it unset and # prod/beta (apt-installed Docker, no snap confinement) leave it unset and
# this is a no-op for them. # this is a no-op for them.
if [ "$rc" = 0 ] && [ -n "${THERMOGRAPH_SECRETS_ENV_FILE_MIRROR:-}" ]; then if [ "$rc" = 0 ] && [ -n "${THERMOGRAPH_SECRETS_ENV_FILE_MIRROR:-}" ]; then
mkdir -p "$(dirname "$THERMOGRAPH_SECRETS_ENV_FILE_MIRROR")" \ if ! mkdir -p "$(dirname "$THERMOGRAPH_SECRETS_ENV_FILE_MIRROR")" \
&& install -m 0600 "$tmp" "$THERMOGRAPH_SECRETS_ENV_FILE_MIRROR" \ || ! install -m 0600 "$tmp" "$THERMOGRAPH_SECRETS_ENV_FILE_MIRROR"; then
|| { echo "!! cannot write mirror at $THERMOGRAPH_SECRETS_ENV_FILE_MIRROR" >&2; rc=1; } echo "!! cannot write mirror at $THERMOGRAPH_SECRETS_ENV_FILE_MIRROR" >&2
rc=1
fi
fi fi
rm -f "$tmp" rm -f "$tmp"