From e4d6b91c820f959aefd5a3ec6792bb72ca8f3bc0 Mon Sep 17 00:00:00 2001 From: prabuddha Date: Mon, 5 Oct 2015 16:03:23 +0530 Subject: [PATCH] Fixed blowfish_secret ERROR with phpmyadmin. #627 --- ee/cli/plugins/stack.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ee/cli/plugins/stack.py b/ee/cli/plugins/stack.py index 81826efc..cbc47457 100644 --- a/ee/cli/plugins/stack.py +++ b/ee/cli/plugins/stack.py @@ -1116,6 +1116,11 @@ class EEStackController(CementBaseController): shutil.move('/tmp/phpmyadmin-STABLE/', '{0}22222/htdocs/db/pma/' .format(EEVariables.ee_webroot)) + shutil.move('{0}22222/htdocs/db/pma/config.sample.inc.php'.format(EEVariables.ee_webroot),'{0}22222/htdocs/db/pma/config.inc.php'.format(EEVariables.ee_webroot)) + blowfish_key = ''.join([random.choice + (string.ascii_letters + string.digits) + for n in range(10)]) + EEFileUtils.searchreplace(self,'{0}22222/htdocs/db/pma/config.inc.php'.format(EEVariables.ee_webroot),"$cfg[\'blowfish_secret\'] = \'\';","$cfg[\'blowfish_secret\'] = \'{0}\';".format(blowfish_key)) Log.debug(self, 'Setting Privileges of webroot permission to ' '{0}22222/htdocs/db/pma file ' .format(EEVariables.ee_webroot))