From efcf36d97089a1a6dd47f73b166a191a840e94f3 Mon Sep 17 00:00:00 2001 From: Gabriel Miranda Date: Sun, 31 Dec 2023 00:17:04 -0300 Subject: [PATCH] Fix secret command to avoid non-ascii alphanumerics --- docs/tutorials/tut1.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorials/tut1.rst b/docs/tutorials/tut1.rst index 634e47e3e..b379de538 100644 --- a/docs/tutorials/tut1.rst +++ b/docs/tutorials/tut1.rst @@ -41,7 +41,7 @@ Let's create a password and provide it to PostgREST. Think of a nice long one, o export LC_CTYPE=C # read random bytes and keep only alphanumerics - echo "jwt-secret = \"$(< /dev/urandom tr -dc A-Za-z0-9 | head -c32)\"" >> tutorial.conf + echo "jwt-secret = \"$(LC_ALL=C tr -dc 'A-Za-z0-9' > tutorial.conf check the :code:`tutorial.conf` (created in the previous tutorial) the line with the password: