13 lines
265 B
Bash
Executable File
13 lines
265 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
cd "$(dirname "$0")/.."
|
|
if [ ! -f .env ]; then
|
|
umask 077
|
|
python3 - <<'PY' > .env
|
|
import secrets
|
|
for name in ('POSTGRES_PASSWORD','S3_ROOT_PASSWORD','S3_API_PASSWORD'):
|
|
print(name+'='+secrets.token_hex(24))
|
|
print('APP_PORT=8085')
|
|
PY
|
|
fi
|