Added trac handler, changed VSERVERS variable to be lowercase and
[matthijs/upstream/backupninja.git] / handlers / mysql
index 13dd62f2643a9d3be9ffdcaf0e82df2555d8cdc0..d5c0370e733c9252c217e574cfd0c1a2af0fea89 100644 (file)
@@ -28,7 +28,7 @@ fi
 # If vservers are configured, decide if the handler should
 # use them or if it should just operate on the host
 
-if [ "$VSERVERS" = "yes" ]
+if [ "$vservers" = "yes" ]
 then
        if [ ! -z $vsname ]
        then            
@@ -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"