Browse Source

Fix pma travis issue

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

14
ee/cli/plugins/stack.py

@ -1116,11 +1116,21 @@ 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))
shutil.copyfile('{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))
Log.debug(self, 'Setting Blowfish Secret Key FOR COOKIE AUTH to '
'{0}22222/htdocs/db/pma/config.inc.php file '
.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))
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