Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Escape the secret key when writing it to the env file (#6243)

Trenton H00b04c2e860d
diff --git a/install-paperless-ngx.sh b/install-paperless-ngx.sh
index 4e8181a51..84e55d3ee 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