Closed Kangie closed 3 years ago
I am a bot, here are the test results for this PR: https://ci-tests.linuxserver.io/lspipepr/bookstack/v21.05.2-pkg-af5df187-pr-101/index.html https://ci-tests.linuxserver.io/lspipepr/bookstack/v21.05.2-pkg-af5df187-pr-101/shellcheck-result.xml
Description:
Escape special characters in DB_PASSWORD environment variable before they're used in a sed substitution.
Benefits of this PR and context:
A
DB_PASS
variable containing any of the following characters will not be output verbatim in a sed replacement string:Causing Bookstack initialisations to fail as the DB and Web App are provided with different passwords.
How Has This Been Tested?
Tested in Bash/Zsh:
Old Behaviour:
New Behaviour:
Source / References:
Fixes #100