Files
mtusi2026lab2/scripts/bootstrap.sh
T

11 lines
231 B
Bash
Executable File

#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
umask 077
if [ -e .env ]; then echo 'Using existing .env'; exit 0; fi
set -C
{
printf 'PG_PASS=%s\n' "$(openssl rand -hex 24)"
printf 'CACHE_PASS=%s\n' "$(openssl rand -hex 24)"
} > .env