Ok, fine, this is less ridiculous.

This commit is contained in:
Darryl Nixon 2023-05-23 13:31:16 -07:00
parent 29d31fffc7
commit eb99384b1e

View file

@ -23,7 +23,7 @@ You'll need `docker-compose` installed or you can convert the contents of `docke
```bash
git clone https://github.com/darrylnixon/ghostforge.git && \
cd ghostforge && \
PW=$(head -c 500 /dev/urandom | LC_ALL=C tr -dc '[:print:]' | fold -w 24 | head -n 1 | sed "s/\\\\/\\\\\\\\/g; s/'/\\\\\'/g") | sed -i .bak "s/^DATABASE_PASSWORD=.*/DATABASE_PASSWORD=$PW" .env;
PW=$(/usr/bin/env python3 -c "import secrets; print(secrets.token_urlsafe(24))") | sed -i .bak "s/^DATABASE_PASSWORD=.*/DATABASE_PASSWORD=$PW" .env;
docker-compose up --detach --build;
docker exec --interactive --tty ghostforge ghostforge_adduser;
```