From eb99384b1ec55b19e339b4a9164c3d7b1bb2aa37 Mon Sep 17 00:00:00 2001 From: Darryl Nixon Date: Tue, 23 May 2023 13:31:16 -0700 Subject: [PATCH] Ok, fine, this is less ridiculous. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0522f58..89e6963 100644 --- a/README.md +++ b/README.md @@ -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; ```