From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Tue, 2 Apr 2024 03:02:27 +0000 (-0700) Subject: Escape the secret key when writing it to the env file (#6243) X-Git-Tag: v2.7.0~1^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00b04c2e860dfbb0894ab346f05ca52a674c05d4;p=thirdparty%2Fpaperless-ngx.git Escape the secret key when writing it to the env file (#6243) --- diff --git a/install-paperless-ngx.sh b/install-paperless-ngx.sh index 4e8181a513..84e55d3ee0 100755 --- a/install-paperless-ngx.sh +++ b/install-paperless-ngx.sh @@ -335,7 +335,7 @@ read -r -a OCR_LANGUAGES_ARRAY <<< "${_split_langs}" fi echo "PAPERLESS_TIME_ZONE=$TIME_ZONE" echo "PAPERLESS_OCR_LANGUAGE=$OCR_LANGUAGE" - echo "PAPERLESS_SECRET_KEY=$SECRET_KEY" + echo "PAPERLESS_SECRET_KEY='$SECRET_KEY'" if [[ ! ${DEFAULT_LANGUAGES[*]} =~ ${OCR_LANGUAGES_ARRAY[*]} ]] ; then echo "PAPERLESS_OCR_LANGUAGES=${OCR_LANGUAGES_ARRAY[*]}" fi