]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Escape the secret key when writing it to the env file (#6243)
authorTrenton H <797416+stumpylog@users.noreply.github.com>
Tue, 2 Apr 2024 03:02:27 +0000 (20:02 -0700)
committerGitHub <noreply@github.com>
Tue, 2 Apr 2024 03:02:27 +0000 (03:02 +0000)
install-paperless-ngx.sh

index 4e8181a5135d873002772c31d4de0320e5a924a8..84e55d3ee0af161c51e6ff47fb96c20f5f4fd30b 100755 (executable)
@@ -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