|
@ -278,8 +278,8 @@ class EEStackController(CementBaseController): |
|
|
# 22222 port settings |
|
|
# 22222 port settings |
|
|
Log.debug(self, 'Writting the nginx configuration to ' |
|
|
Log.debug(self, 'Writting the nginx configuration to ' |
|
|
'file /etc/nginx/sites-available/' |
|
|
'file /etc/nginx/sites-available/' |
|
|
'22222.conf') |
|
|
'22222') |
|
|
ee_nginx = open('/etc/nginx/sites-available/22222.conf', |
|
|
ee_nginx = open('/etc/nginx/sites-available/22222', |
|
|
encoding='utf-8', mode='w') |
|
|
encoding='utf-8', mode='w') |
|
|
self.app.render((data), '22222.mustache', |
|
|
self.app.render((data), '22222.mustache', |
|
|
out=ee_nginx) |
|
|
out=ee_nginx) |
|
@ -297,10 +297,10 @@ class EEStackController(CementBaseController): |
|
|
# Create Symbolic link for 22222 |
|
|
# Create Symbolic link for 22222 |
|
|
EEFileUtils.create_symlink(self, ['/etc/nginx/' |
|
|
EEFileUtils.create_symlink(self, ['/etc/nginx/' |
|
|
'sites-available/' |
|
|
'sites-available/' |
|
|
'22222.conf', |
|
|
'22222', |
|
|
'/etc/nginx/' |
|
|
'/etc/nginx/' |
|
|
'sites-enabled/' |
|
|
'sites-enabled/' |
|
|
'22222.conf']) |
|
|
'22222']) |
|
|
# Create log and cert folder and softlinks |
|
|
# Create log and cert folder and softlinks |
|
|
if not os.path.exists('{0}22222/logs' |
|
|
if not os.path.exists('{0}22222/logs' |
|
|
.format(EEVariables.ee_webroot)): |
|
|
.format(EEVariables.ee_webroot)): |
|
@ -1052,17 +1052,17 @@ class EEStackController(CementBaseController): |
|
|
|
|
|
|
|
|
Log.debug(self, 'Writting the nginx configuration for ' |
|
|
Log.debug(self, 'Writting the nginx configuration for ' |
|
|
'RoundCubemail') |
|
|
'RoundCubemail') |
|
|
ee_rc = open('/etc/nginx/sites-available/webmail.conf', |
|
|
ee_rc = open('/etc/nginx/sites-available/webmail', |
|
|
encoding='utf-8', mode='w') |
|
|
encoding='utf-8', mode='w') |
|
|
self.app.render((data), 'virtualconf.mustache', |
|
|
self.app.render((data), 'virtualconf.mustache', |
|
|
out=ee_rc) |
|
|
out=ee_rc) |
|
|
ee_rc.close() |
|
|
ee_rc.close() |
|
|
|
|
|
|
|
|
# Create Symbolic link for webmail.conf |
|
|
# Create Symbolic link for webmail |
|
|
EEFileUtils.create_symlink(self, ['/etc/nginx/sites-available' |
|
|
EEFileUtils.create_symlink(self, ['/etc/nginx/sites-available' |
|
|
'/webmail.conf', |
|
|
'/webmail', |
|
|
'/etc/nginx/sites-enabled/' |
|
|
'/etc/nginx/sites-enabled/' |
|
|
'webmail.conf']) |
|
|
'webmail']) |
|
|
# Create log folder and softlinks |
|
|
# Create log folder and softlinks |
|
|
if not os.path.exists('{0}roundcubemail/logs' |
|
|
if not os.path.exists('{0}roundcubemail/logs' |
|
|
.format(EEVariables.ee_webroot)): |
|
|
.format(EEVariables.ee_webroot)): |
|
|