File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -276,6 +276,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
276
276
277
277
## Versions
278
278
279
+ * ** 16.01.23:** - Wrap ` .env ` values in quotes.
279
280
* ** 05.01.23:** - Fix db password setting (sed escape ` & ` ).
280
281
* ** 21.12.22:** - Update db info in .env file when env vars are updated.
281
282
* ** 10.10.22:** - Remove password escape logic which caused problems for a small subset of users.
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ app_setup_block: |
104
104
105
105
# changelog
106
106
changelogs :
107
+ - { date: "16.01.23:", desc: "Wrap `.env` values in quotes." }
107
108
- { date: "05.01.23:", desc: "Fix db password setting (sed escape `&`)." }
108
109
- { date: "21.12.22:", desc: "Update db info in .env file when env vars are updated." }
109
110
- { date: "10.10.22:", desc: "Remove password escape logic which caused problems for a small subset of users." }
Original file line number Diff line number Diff line change @@ -85,15 +85,15 @@ if [[ -n "${DB_HOST}" ]]; then
85
85
86
86
if ! grep -xqE "^[#]?DB_PORT=.*" /config/www/.env; then
87
87
# add DB_PORT line to /config/www/.env because current /app/www/.env.example doesn't have it
88
- sed -i -E "/^[#]?DB_HOST=.*/a DB_PORT=${DB_PORT}" /config/www/.env
89
- echo "**** Insert DB_PORT=${DB_PORT} into /config/www/.env ****"
88
+ sed -i -E "/^[#]?DB_HOST=.*/a DB_PORT=' ${DB_PORT}' " /config/www/.env
89
+ echo "**** Insert DB_PORT=' ${DB_PORT}' into /config/www/.env ****"
90
90
fi
91
91
92
- sed -i -E "s/^[#]?DB_HOST=.*/DB_HOST=${DB_HOST}/g" /config/www/.env
93
- sed -i -E "s/^[#]?DB_PORT=.*/DB_PORT=${DB_PORT}/g" /config/www/.env
94
- sed -i -E "s/^[#]?DB_DATABASE=.*/DB_DATABASE=${DB_DATABASE}/g" /config/www/.env
95
- sed -i -E "s/^[#]?DB_USERNAME=.*/DB_USERNAME=${DB_USER}/g" /config/www/.env
96
- sed -i -E "s/^[#]?DB_PASSWORD=.*/DB_PASSWORD=${DB_PASS//&/\\&}/g" /config/www/.env
92
+ sed -i -E "s/^[#]?DB_HOST=.*/DB_HOST=' ${DB_HOST}' /g" /config/www/.env
93
+ sed -i -E "s/^[#]?DB_PORT=.*/DB_PORT=' ${DB_PORT}' /g" /config/www/.env
94
+ sed -i -E "s/^[#]?DB_DATABASE=.*/DB_DATABASE=' ${DB_DATABASE}' /g" /config/www/.env
95
+ sed -i -E "s/^[#]?DB_USERNAME=.*/DB_USERNAME=' ${DB_USER}' /g" /config/www/.env
96
+ sed -i -E "s/^[#]?DB_PASSWORD=.*/DB_PASSWORD=' ${DB_PASS//&/\\&}' /g" /config/www/.env
97
97
fi
98
98
99
99
# set appurl
You can’t perform that action at this time.
0 commit comments