mirror of
https://github.com/linuxserver/docker-bookstack.git
synced 2026-02-20 02:30:30 +08:00
fix db password setting (sed escape &)
This commit is contained in:
parent
0a8973bb32
commit
d3460595f8
@ -276,6 +276,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
||||
|
||||
## Versions
|
||||
|
||||
* **05.01.23:** - Fix db password setting (sed escape `&`).
|
||||
* **21.12.22:** - Update db info in .env file when env vars are updated.
|
||||
* **10.10.22:** - Remove password escape logic which caused problems for a small subset of users.
|
||||
* **20.08.22:** - Rebasing to alpine 3.15 with php8. Restructure nginx configs ([see changes announcement](https://info.linuxserver.io/issues/2022-08-20-nginx-base)).
|
||||
|
||||
@ -104,6 +104,7 @@ app_setup_block: |
|
||||
|
||||
# changelog
|
||||
changelogs:
|
||||
- { date: "05.01.23:", desc: "Fix db password setting (sed escape `&`)." }
|
||||
- { date: "21.12.22:", desc: "Update db info in .env file when env vars are updated." }
|
||||
- { date: "10.10.22:", desc: "Remove password escape logic which caused problems for a small subset of users." }
|
||||
- { date: "20.08.22:", desc: "Rebasing to alpine 3.15 with php8. Restructure nginx configs ([see changes announcement](https://info.linuxserver.io/issues/2022-08-20-nginx-base))." }
|
||||
|
||||
@ -92,7 +92,7 @@ if [[ -n "${DB_HOST}" ]]; then
|
||||
sed -i -E "s/^[#]?DB_PORT=.*/DB_PORT=${DB_PORT}/g" /config/www/.env
|
||||
sed -i -E "s/^[#]?DB_DATABASE=.*/DB_DATABASE=${DB_DATABASE}/g" /config/www/.env
|
||||
sed -i -E "s/^[#]?DB_USERNAME=.*/DB_USERNAME=${DB_USER}/g" /config/www/.env
|
||||
sed -i -E "s/^[#]?DB_PASSWORD=.*/DB_PASSWORD=${DB_PASS}/g" /config/www/.env
|
||||
sed -i -E "s/^[#]?DB_PASSWORD=.*/DB_PASSWORD=${DB_PASS//&/\\&}/g" /config/www/.env
|
||||
fi
|
||||
|
||||
# set appurl
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user