fix pma
This commit is contained in:
@@ -1005,32 +1005,35 @@ class WOStackController(CementBaseController):
|
|||||||
.format(WOVariables.wo_webroot))
|
.format(WOVariables.wo_webroot))
|
||||||
os.makedirs('{0}22222/htdocs/db'
|
os.makedirs('{0}22222/htdocs/db'
|
||||||
.format(WOVariables.wo_webroot))
|
.format(WOVariables.wo_webroot))
|
||||||
shutil.move('/tmp/phpmyadmin-STABLE/',
|
if not os.path.exists('{0}22222/htdocs/db/'
|
||||||
'{0}22222/htdocs/db/pma/'
|
'pma/phpmyadmin-STABLE'
|
||||||
.format(WOVariables.wo_webroot))
|
.format(WOVariables.wo_webroot)):
|
||||||
shutil.copyfile('{0}22222/htdocs/db/pma/config.sample.inc.php'
|
shutil.move('/tmp/phpmyadmin-STABLE/',
|
||||||
.format(WOVariables.wo_webroot),
|
'{0}22222/htdocs/db/pma/'
|
||||||
'{0}22222/htdocs/db/pma/config.inc.php'
|
|
||||||
.format(WOVariables.wo_webroot))
|
.format(WOVariables.wo_webroot))
|
||||||
Log.debug(self, 'Setting Blowfish Secret Key FOR COOKIE AUTH to '
|
shutil.copyfile('{0}22222/htdocs/db/pma/config.sample.inc.php'
|
||||||
'{0}22222/htdocs/db/pma/config.inc.php file '
|
.format(WOVariables.wo_webroot),
|
||||||
.format(WOVariables.wo_webroot))
|
'{0}22222/htdocs/db/pma/config.inc.php'
|
||||||
blowfish_key = ''.join([random.choice
|
.format(WOVariables.wo_webroot))
|
||||||
(string.ascii_letters + string.digits)
|
Log.debug(self, 'Setting Blowfish Secret Key FOR COOKIE AUTH to '
|
||||||
for n in range(25)])
|
'{0}22222/htdocs/db/pma/config.inc.php file '
|
||||||
WOFileUtils.searchreplace(self,
|
.format(WOVariables.wo_webroot))
|
||||||
'{0}22222/htdocs/db/pma/config.inc.php'
|
blowfish_key = ''.join([random.choice
|
||||||
.format(WOVariables.wo_webroot),
|
(string.ascii_letters + string.digits)
|
||||||
"$cfg[\'blowfish_secret\'] = \'\';", "$cfg[\'blowfish_secret\'] = \'{0}\';"
|
for n in range(25)])
|
||||||
.format(blowfish_key))
|
WOFileUtils.searchreplace(self,
|
||||||
Log.debug(self, 'Setting HOST Server For Mysql to '
|
'{0}22222/htdocs/db/pma/config.inc.php'
|
||||||
'{0}22222/htdocs/db/pma/config.inc.php file '
|
.format(WOVariables.wo_webroot),
|
||||||
.format(WOVariables.wo_webroot))
|
"$cfg[\'blowfish_secret\'] = \'\';", "$cfg[\'blowfish_secret\'] = \'{0}\';"
|
||||||
WOFileUtils.searchreplace(self,
|
.format(blowfish_key))
|
||||||
'{0}22222/htdocs/db/pma/config.inc.php'
|
Log.debug(self, 'Setting HOST Server For Mysql to '
|
||||||
.format(WOVariables.wo_webroot),
|
'{0}22222/htdocs/db/pma/config.inc.php file '
|
||||||
"$cfg[\'Servers\'][$i][\'host\'] = \'localhost\';", "$cfg[\'Servers\'][$i][\'host\'] = \'{0}\';"
|
.format(WOVariables.wo_webroot))
|
||||||
.format(WOVariables.wo_mysql_host))
|
WOFileUtils.searchreplace(self,
|
||||||
|
'{0}22222/htdocs/db/pma/config.inc.php'
|
||||||
|
.format(WOVariables.wo_webroot),
|
||||||
|
"$cfg[\'Servers\'][$i][\'host\'] = \'localhost\';", "$cfg[\'Servers\'][$i][\'host\'] = \'{0}\';"
|
||||||
|
.format(WOVariables.wo_mysql_host))
|
||||||
Log.debug(self, 'Setting Privileges of webroot permission to '
|
Log.debug(self, 'Setting Privileges of webroot permission to '
|
||||||
'{0}22222/htdocs/db/pma file '
|
'{0}22222/htdocs/db/pma file '
|
||||||
.format(WOVariables.wo_webroot))
|
.format(WOVariables.wo_webroot))
|
||||||
|
|||||||
Reference in New Issue
Block a user