Browse Source

MySQL configuration added

bugfixes
gau1991 10 years ago
parent
commit
0ca7a5bb07
  1. 9
      ee/cli/plugins/stack.py

9
ee/cli/plugins/stack.py

@ -137,6 +137,15 @@ class EEStackController(CementBaseController):
with open('/etc/php5/fpm/pool.d/www.conf', 'w') as configfile:
config.write()
if set(EEVariables.ee_mysql).issubset(set(apt_packages)):
config = configparser.ConfigParser()
config.read('/etc/mysql/my.cnf')
config['mysqld']['wait_timeout'] = 30
config['mysqld']['interactive_timeout'] = 60
config['mysqld']['performance_schema'] = 0
with open('/etc/mysql/my.cnf', 'w') as configfile:
config.write()
if len(packages):
if any('/usr/bin/wp' == x[1] for x in packages):
EEShellExec.cmd_exec("chmod +x /usr/bin/wp")

Loading…
Cancel
Save