#!/bin/sh set -eu umask 077 ROOT=$(CDPATH='' cd -- "$(dirname -- "$0")/.." && pwd) target="$ROOT/.env.e2e" if [ -f "$target" ]; then chmod 600 "$target" echo ".env.e2e already exists; no secret was changed." 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" <