From 73f8f6971c2119fab56fb0366b9c38b7c6216367 Mon Sep 17 00:00:00 2001 From: harshadyeola Date: Mon, 9 Feb 2015 19:22:10 +0530 Subject: [PATCH] prevent password logging --- ee/cli/plugins/site_functions.py | 44 +++++++++++++++++++++++++++++--- ee/core/aptget.py | 31 ++++++++++++++-------- ee/core/shellexec.py | 5 ++-- 3 files changed, 64 insertions(+), 16 deletions(-) diff --git a/ee/cli/plugins/site_functions.py b/ee/cli/plugins/site_functions.py index a4cd3ac5..b12d3673 100644 --- a/ee/cli/plugins/site_functions.py +++ b/ee/cli/plugins/site_functions.py @@ -177,6 +177,15 @@ def setupwordpress(self, data): Log.debug(self, "Setting up wp-config file") if not data['multisite']: Log.debug(self, "Generating wp-config for WordPress Single site") + Log.debug(self, "bash -c \"php /usr/bin/wp --allow-root " + + "core config " + + "--dbname={0} --dbprefix={1} --dbuser={2} " + .format(data['ee_db_name'], ee_wp_prefix, + data['ee_db_user']) + + "--dbpass= " + "--extra-php<