#!/bin/sh set -eu umask 077 ROOT=$(CDPATH='' cd -- "$(dirname -- "$0")/.." && pwd) target="$ROOT/.env.e2e" if [ -f "$target" ]; then chmod 600 "$target" if ! grep -q '^TRAEFIK_RETRY_ATTEMPTS=' "$target"; then printf '\nTRAEFIK_RETRY_ATTEMPTS=3\n' >>"$target" chmod 600 "$target" echo "Added the missing Traefik retry input; no E2E secret was changed." else echo ".env.e2e already exists; no secret or experiment input was changed." fi exit 0 fi postgres_password=$(openssl rand -hex 32) secret_key_base=$(openssl rand -hex 64) handover_secret=$(openssl rand -hex 64) release_cookie=$(openssl rand -hex 64) metrics_token=$(openssl rand -hex 32) cat >"$target" <