|
7 | 7 | from ee.core.services import EEService |
8 | 8 | from ee.core.fileutils import EEFileUtils |
9 | 9 | from ee.core.shellexec import EEShellExec |
| 10 | +from ee.core.git import EEGit |
10 | 11 | import configparser |
11 | 12 | import os |
12 | 13 |
|
@@ -200,6 +201,21 @@ def default(self): |
200 | 201 | ee_nginx.write('fastcgi_param \tSCRIPT_FILENAME ' |
201 | 202 | '\t$request_filename;\n') |
202 | 203 |
|
| 204 | + # Fix "ssl_prefer_server_ciphers" directive is duplicate |
| 205 | + # that is arrived in latest Debian update |
| 206 | + if EEVariables.ee_platform_distro == 'ubuntu': |
| 207 | + data = dict(version=EEVariables.ee_version, Ubuntu=True) |
| 208 | + else: |
| 209 | + data = dict(version=EEVariables.ee_version, Debian=True) |
| 210 | + Log.debug(self, 'Writting the nginx configuration to ' |
| 211 | + 'file /etc/nginx/conf.d/ee-nginx.conf ') |
| 212 | + ee_nginx = open('/etc/nginx/conf.d/ee-nginx.conf', |
| 213 | + encoding='utf-8', mode='w') |
| 214 | + self.app.render((data), 'nginx-core.mustache', out=ee_nginx) |
| 215 | + ee_nginx.close() |
| 216 | + |
| 217 | + EEGit.add(self, ["/etc/nginx"], msg="Updated Nginx") |
| 218 | + |
203 | 219 | EEService.restart_service(self, 'nginx') |
204 | 220 |
|
205 | 221 | if set(EEVariables.ee_php).issubset(set(apt_packages)): |
|
0 commit comments