infra: mirror LAN dev secrets under $HOME for snap-confined Docker #85
1 changed files with 5 additions and 3 deletions
|
|
@ -137,9 +137,11 @@ render_thermograph_secrets() {
|
|||
# prod/beta (apt-installed Docker, no snap confinement) leave it unset and
|
||||
# this is a no-op for them.
|
||||
if [ "$rc" = 0 ] && [ -n "${THERMOGRAPH_SECRETS_ENV_FILE_MIRROR:-}" ]; then
|
||||
mkdir -p "$(dirname "$THERMOGRAPH_SECRETS_ENV_FILE_MIRROR")" \
|
||||
&& install -m 0600 "$tmp" "$THERMOGRAPH_SECRETS_ENV_FILE_MIRROR" \
|
||||
|| { echo "!! cannot write mirror at $THERMOGRAPH_SECRETS_ENV_FILE_MIRROR" >&2; rc=1; }
|
||||
if ! mkdir -p "$(dirname "$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
|
||||
fi
|
||||
fi
|
||||
|
||||
rm -f "$tmp"
|
||||
|
|
|
|||
Loading…
Reference in a new issue