20 行
470 B
Bash
20 行
470 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
set -euo pipefail
|
||
|
|
|
||
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||
|
|
. "$ROOT_DIR/scripts/lib.sh"
|
||
|
|
|
||
|
|
audit "configure" "STARTED" "rendering initial config"
|
||
|
|
progress "configure" "STARTED" "rendering initial config"
|
||
|
|
|
||
|
|
if [ ! -f "$ROOT_DIR/.env" ]; then
|
||
|
|
cp "$ROOT_DIR/.env.example" "$ROOT_DIR/.env"
|
||
|
|
fi
|
||
|
|
|
||
|
|
ensure_secret_file
|
||
|
|
|
||
|
|
"$ROOT_DIR/scripts/render-config.sh"
|
||
|
|
|
||
|
|
audit "configure" "DONE" "config ready"
|
||
|
|
progress "configure" "DONE" "config ready"
|