From 0d1a8d6d2f0ba90a955fbf189f301e173823c75a Mon Sep 17 00:00:00 2001 From: Trenton Holmes <797416+stumpylog@users.noreply.github.com> Date: Sun, 12 Feb 2023 08:23:11 -0800 Subject: [PATCH] Resolves the subshell not returnning when generating SECRET_KEY --- install-paperless-ngx.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-paperless-ngx.sh b/install-paperless-ngx.sh index c05a4b36c..469f96005 100755 --- a/install-paperless-ngx.sh +++ b/install-paperless-ngx.sh @@ -321,7 +321,7 @@ fi wget "https://raw.githubusercontent.com/paperless-ngx/paperless-ngx/main/docker/compose/docker-compose.$DOCKER_COMPOSE_VERSION.yml" -O docker-compose.yml wget "https://raw.githubusercontent.com/paperless-ngx/paperless-ngx/main/docker/compose/.env" -O .env -SECRET_KEY=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 64 | head -n 1) +SECRET_KEY=$(tr --delete --complement 'a-zA-Z0-9' < /dev/urandom 2>/dev/null | head --bytes 64) DEFAULT_LANGUAGES=("deu eng fra ita spa")