diff --git a/ee/cli/plugins/stack.py b/ee/cli/plugins/stack.py index bade6cef..9b8a9c78 100644 --- a/ee/cli/plugins/stack.py +++ b/ee/cli/plugins/stack.py @@ -145,6 +145,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")