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; ```