]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Resolves the subshell not returnning when generating SECRET_KEY
authorTrenton Holmes <797416+stumpylog@users.noreply.github.com>
Sun, 12 Feb 2023 16:23:11 +0000 (08:23 -0800)
committerTrenton H <797416+stumpylog@users.noreply.github.com>
Wed, 15 Feb 2023 01:20:34 +0000 (17:20 -0800)
install-paperless-ngx.sh

index c05a4b36cde2c0a5ea118dfb58122490a863c605..469f96005f3afce036c01090c71dc4dc45418cc0 100755 (executable)
@@ -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")