mirror of
https://github.com/DarrylNixon/ghostforge
synced 2024-04-22 06:27:20 -07:00
Ok, fine, this is less ridiculous.
This commit is contained in:
parent
29d31fffc7
commit
eb99384b1e
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ You'll need `docker-compose` installed or you can convert the contents of `docke
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/darrylnixon/ghostforge.git && \
|
git clone https://github.com/darrylnixon/ghostforge.git && \
|
||||||
cd ghostforge && \
|
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-compose up --detach --build;
|
||||||
docker exec --interactive --tty ghostforge ghostforge_adduser;
|
docker exec --interactive --tty ghostforge ghostforge_adduser;
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue