From 7b29cc22bc7a62b5187b387777b844e82e735895 Mon Sep 17 00:00:00 2001 From: harshadyeola Date: Wed, 22 Apr 2015 14:09:25 +0530 Subject: [PATCH] #453 issue initail fix --- ee/cli/plugins/site.py | 10 ++++++++++ ee/cli/plugins/site_functions.py | 7 +++++++ 2 files changed, 17 insertions(+) diff --git a/ee/cli/plugins/site.py b/ee/cli/plugins/site.py index 2796e515..d34c9e87 100644 --- a/ee/cli/plugins/site.py +++ b/ee/cli/plugins/site.py @@ -338,6 +338,13 @@ class EESiteCreateController(CementBaseController): dict(help="create HHVM site", action='store_true')), (['--pagespeed'], dict(help="create pagespeed site", action='store_true')), + (['--user'], + dict(help="provide user for wordpress site")), + (['--email'], + dict(help="provide email address for wordpress site")), + (['--pass'], + dict(help="provide password for wordpress user", + dest='wppass')) ] @expose(hide=True) @@ -399,6 +406,9 @@ class EESiteCreateController(CementBaseController): data['wp'] = True data['basic'] = False data[cache] = True + data['wp-user'] = self.app.pargs.user + data['wp-email'] = self.app.pargs.email + data['wp-pass'] = self.app.pargs.wppass if stype in ['wpsubdir', 'wpsubdomain']: data['multisite'] = True if stype == 'wpsubdir': diff --git a/ee/cli/plugins/site_functions.py b/ee/cli/plugins/site_functions.py index 7c860662..0bbcbcdd 100644 --- a/ee/cli/plugins/site_functions.py +++ b/ee/cli/plugins/site_functions.py @@ -235,6 +235,13 @@ def setupwordpress(self, data): # ee_wp_user = '' # ee_wp_pass = '' + if 'wp-user' in data.keys() and data['wp-user']: + ee_wp_user = data['wp-user'] + if 'wp-email' in data.keys() and data['wp-email']: + ee_wp_email = data['wp-email'] + if 'wp-pass' in data.keys() and data['wp-pass']: + ee_wp_pass = data['wp-pass'] + Log.info(self, "Downloading Wordpress \t\t", end='') EEFileUtils.chdir(self, '{0}/htdocs/'.format(ee_site_webroot)) try: