-
Notifications
You must be signed in to change notification settings - Fork 120
Expand file tree
/
Copy pathquickstart.sh
More file actions
executable file
·36 lines (32 loc) · 1.51 KB
/
Copy pathquickstart.sh
File metadata and controls
executable file
·36 lines (32 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# Trinity Quick Start — an alias for scripts/deploy/start.sh.
#
# Usage:
# ./quickstart.sh — same as ./scripts/deploy/start.sh
# ./quickstart.sh --defaults — same as ./scripts/deploy/start.sh --unattended
# ./quickstart.sh --hosted — every other flag reaches start.sh verbatim
#
# #2528: this used to be a second installer — its own .env seeding, its own
# `.env` reader, its own bare `docker compose up -d`. A second script that
# brings the stack up is a second place every guard has to be re-implemented,
# and the one that mattered never was: start.sh has refused to start the dev
# stack over a production bind mount since #2280, while this file predated the
# guard and walked straight past it — booting docker-compose.yml's empty
# `trinity-data` volume on a host whose real database sat in TRINITY_DATA_PATH,
# seeding a demo workspace into the wrong store, and reporting healthy. It had
# also never learned the Redis passwords #589 made mandatory, so it only worked
# on a host whose .env was already complete. HOST-006 forbids exactly this
# shape ("one install path, not a second script"); this file now honours it.
#
# `--defaults` was this script's own spelling of "don't prompt"; start.sh's is
# `--unattended`, so it is translated. Nothing else is interpreted here.
set -e
cd "$(dirname "$0")"
args=()
for arg in "$@"; do
case "$arg" in
--defaults) args+=(--unattended) ;;
*) args+=("$arg") ;;
esac
done
exec ./scripts/deploy/start.sh "${args[@]}"