mysql tried to remove a tmpfile that didn't exist, fixed check for this
[matthijs/upstream/backupninja.git] / handlers / mysql
index f89d8d724bccd00d6a401f0cd408cb740ab2f8c9..ae54aae7f2a2c0500b8999e03e043009e6eb7768 100644 (file)
@@ -277,7 +277,7 @@ fi
 fi
 
 # clean up tmp config file
-if [ "$dbusername" != "" ]
+if [ "$dbusername" != "" -a "$dbpassword" != "" ]
 then
        ## clean up tmp config file
        debug "rm $mycnf"