Skip to content

Commit e6009e7

Browse files
committed
Release 1.18.1 - See CHANGELOG.md
1 parent 06b6e68 commit e6009e7

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.18.1 2020-03-14 <dave at tiredofit dot ca>
2+
3+
### Changed
4+
- Allow for passwords with spaces in them for MariaDB / MySQL
5+
6+
17
## 1.18.0 2019-12-29 <dave at tiredofit dot ca>
28

39
### Added

install/etc/s6/services/10-db-backup/run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fi
6565
"mysql" | "MYSQL" | "mariadb" | "MARIADB")
6666
DBTYPE=mysql
6767
DBPORT=${DB_PORT:-3306}
68-
[[ ( -n "${DB_PASS}" ) ]] && MYSQL_PASS_STR=" -p${DBPASS}"
68+
[[ ( -n "${DB_PASS}" ) ]] && MYSQL_PASS_STR=" -p'${DBPASS}'"
6969
;;
7070
"postgres" | "postgresql" | "pgsql" | "POSTGRES" | "POSTGRESQL" | "PGSQL" )
7171
DBTYPE=pgsql
@@ -96,7 +96,7 @@ function backup_couch() {
9696

9797
function backup_mysql() {
9898
if [ "$SPLIT_DB" = "TRUE" ] || [ "$SPLIT_DB" = "true" ]; then
99-
DATABASES=`mysql -h $DBHOST -P $DBPORT -u$DBUSER -p$DBPASS --batch -e "SHOW DATABASES;" | grep -v Database|grep -v schema`
99+
DATABASES=`mysql -h ${DBHOST} -P $DBPORT -u$DBUSER -p"${DBPASS}" --batch -e "SHOW DATABASES;" | grep -v Database|grep -v schema`
100100

101101
for db in $DATABASES; do
102102
if [[ "$db" != "information_schema" ]] && [[ "$db" != _* ]] ; then

0 commit comments

Comments
 (0)