Выполнить лабораторную 4: S3-вложения и согласованность хранилищ
This commit is contained in:
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/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=8084')
|
||||
PY
|
||||
fi
|
||||
Reference in New Issue
Block a user