From cf50ff6251e21092a3f6a74f4919bd2f61375052 Mon Sep 17 00:00:00 2001 From: Joshua Hoblitt Date: Wed, 21 Dec 2016 10:36:49 -0700 Subject: [PATCH] fix validation warning Logic error --- templates/mysql.sh.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/mysql.sh.erb b/templates/mysql.sh.erb index 210e51f..000212b 100644 --- a/templates/mysql.sh.erb +++ b/templates/mysql.sh.erb @@ -16,7 +16,7 @@ dbs=( ) <%end-%> for db in "${dbs[@]}"; do -<% if (@dbbackup_user == 'root' && @dbbackup_password = '' )-%> +<% if (@dbbackup_user == 'root' && @dbbackup_password == '' )-%> ssh -l <%=@backup_user-%> "$host" "<%=@dumper-%> <%=@dump_flags-%> ${db}" > "$db".sql <%else-%> ssh -l <%=@backup_user-%> "$host" "<%=@dumper-%> --user=<%=@dbbackup_user-%> --password='<%=@dbbackup_password-%>' <%=@dump_flags-%> ${db}" > "$db".sql