diff options
author | Elijah Saxon <elijah@riseup.net> | 2005-06-09 20:02:28 +0000 |
---|---|---|
committer | Elijah Saxon <elijah@riseup.net> | 2005-06-09 20:02:28 +0000 |
commit | 1a2279cba4d6d3c8096d806d8042e228308465af (patch) | |
tree | 969d39db27e2e48543a403757030d395cee11a8f | |
parent | 72e56ec106acee747b771b0f0d0607c73a4788c2 (diff) | |
download | backupninja-1a2279cba4d6d3c8096d806d8042e228308465af.tar.gz backupninja-1a2279cba4d6d3c8096d806d8042e228308465af.tar.bz2 |
added double quotes around password in .my.cnf
-rw-r--r-- | changelog | 4 | ||||
-rw-r--r-- | handlers/mysql | 6 |
2 files changed, 6 insertions, 4 deletions
@@ -20,7 +20,9 @@ version 0.x -- xxxxxxxxxxxxx added configfile option to mysql handler the default is /etc/mysql/debian.cnf. with this, sqldump doesn't need dbusername. (hotcopy still does). - + fixed bug in mysql handler which caused some passwords to not work. + (.my.cnf files now have double quotes around password) + version 0.5 -- April 12 2005 rdiff handler works when remote sshd has a banner rdiff handler supports local dest diff --git a/handlers/mysql b/handlers/mysql index 13dd62f..a4a1497 100644 --- a/handlers/mysql +++ b/handlers/mysql @@ -96,15 +96,15 @@ if [ "$dbusername" != "" -a "$dbpassword" != "" ]; then # auto generated backupninja mysql conf [mysql] user=$dbusername -password=$dbpassword +password="$dbpassword" [mysqldump] user=$dbusername -password=$dbpassword +password="$dbpassword" [mysqlhotcopy] user=$dbusername -password=$dbpassword +password="$dbpassword" EOF umask $oldmask defaultsfile="--defaults-file=$mycnf" |