Browse Source

Fixed blowfish_secret ERROR with phpmyadmin. #627

hotfix/v3.3.14
prabuddha 9 years ago
parent
commit
e4d6b91c82
  1. 5
      ee/cli/plugins/stack.py

5
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))

Loading…
Cancel
Save