File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change
1
+ ## 3.9.1 2023-05-03 <dave at tiredofit dot ca >
2
+
3
+ ### Changed
4
+ - Properly allow multiple _FILE environment variables to execute solving an issue with MySQL backups
5
+ - Fix _FILE functionality for DB_NAME variable
6
+
7
+
1
8
## 3.9.0 2023-04-26 <dave at tiredofit dot ca >
2
9
3
10
### Added
Original file line number Diff line number Diff line change @@ -4,9 +4,11 @@ bootstrap_variables() {
4
4
sanity_var DB_TYPE "Set appropriate DB_TYPE"
5
5
transform_file_var \
6
6
DB_HOST \
7
+ DB_NAME \
7
8
DB_PORT \
8
9
DB_USER \
9
10
DB_PASS
11
+
10
12
case "${DB_TYPE,,}" in
11
13
couch* )
12
14
dbtype=couch
@@ -52,7 +54,8 @@ bootstrap_variables() {
52
54
dbtype=mysql
53
55
DB_PORT=${DB_PORT:-3306}
54
56
sanity_var DB_NAME "Database Name to backup. Multiple seperated by commas"
55
- [[ ( -n "${DB_PASS}" ) ]] && export MYSQL_PWD=${DB_PASS}
57
+ transform_file_var DB_PASS
58
+ if [ -n "${DB_PASS}" ] ; then export MYSQL_PWD=${DB_PASS} ; fi
56
59
if var_true "${MYSQL_ENABLE_TLS}" ; then
57
60
if [ -n "${MYSQL_TLS_CA_FILE}" ] ; then
58
61
mysql_tls_args="--ssl_ca=${MYSQL_TLS_CA_FILE}"
@@ -445,6 +448,7 @@ check_availability() {
445
448
;;
446
449
"mysql" )
447
450
counter=0
451
+ transform_file_var DB_PASS
448
452
export MYSQL_PWD=${DB_PASS}
449
453
while ! (mysqladmin -u"${DB_USER}" -P"${DB_PORT}" -h"${DB_HOST}" ${mysql_tls_args} status > /dev/null 2>&1) ; do
450
454
sleep 5
You can’t perform that action at this time.
0 commit comments