From 0d5b5908a90c411320468ff0d456e1250ae3cd1a Mon Sep 17 00:00:00 2001 From: "Viktor Braun (v_b)" Date: Tue, 9 Jun 2015 20:03:49 +0200 Subject: [PATCH] fixed mysql 'Warning: Using a password on the command line interface can be insecure.' Bug --- tasks/lib/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/lib/util.js b/tasks/lib/util.js index 41ddb72..15304d3 100644 --- a/tasks/lib/util.js +++ b/tasks/lib/util.js @@ -220,8 +220,8 @@ exports.init = function (grunt) { var tpls = { backup_path: "<%= backups_dir %>/<%= env %>/<%= date %>/<%= time %>", - mysqldump: "mysqldump -h <%= host %> -u<%= user %> -p<%= pass %> <%= database %>", - mysql: "mysql -h <%= host %> -u <%= user %> -p<%= pass %> <%= database %>", + mysqldump: "MYSQL_PWD=<%= pass %> mysqldump -h <%= host %> -u<%= user %> <%= database %>", + mysql: "MYSQL_PWD=<%= pass %> mysql -h <%= host %> -u <%= user %> <%= database %>", rsync_push: "rsync <%= rsync_args %> --delete -e 'ssh <%= ssh_host %>' <%= exclusions %> <%= from %> :<%= to %>", rsync_pull: "rsync <%= rsync_args %> -e 'ssh <%= ssh_host %>' <%= exclusions %> :<%= from %> <%= to %>", ssh: "ssh <%= host %>",