Skip to content

Commit a3e39ad

Browse files
committed
update install script
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent 7fdced8 commit a3e39ad

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

install.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,15 @@ curl -sSL "$REPO/compose.yml" -o compose.yml
3131
info "Downloading database seed data"
3232
curl -sSL "$REPO/data/postgresql/initdb.sql.gz" -o data/postgresql/initdb.sql.gz
3333

34-
info "Downloading environment template"
35-
curl -sSL "$REPO/.env.run" -o .env.run
34+
info "Downloading docker.env"
35+
curl -sSL "$REPO/docker.env" -o docker.env
3636

37-
# ── Generate docker.env with a secure secret key ──────────────────────────────
38-
info "Generating secret key"
37+
# ── Generate .env with a secure secret key ────────────────────────────────────
38+
info "Generating .env"
3939
SECRET_KEY=$(LC_ALL=C tr -dc 'A-Za-z0-9!@#%^&*(-_=+)' < /dev/urandom | head -c 50)
40-
sed "s|^SECRET_KEY=.*|SECRET_KEY=$SECRET_KEY|" .env.run > docker.env
41-
rm .env.run
40+
cat > .env <<EOF
41+
SECRET_KEY=$SECRET_KEY
42+
EOF
4243

4344
# ── Install wrapper command ───────────────────────────────────────────────────
4445
info "Installing dejacode command to $WRAPPER"

0 commit comments

Comments
 (0)