@@ -571,10 +571,44 @@ def site_package_check(self, stype):
571571 if not EEAptGet .is_installed (self , 'hhvm' ):
572572 apt_packages = apt_packages + EEVariables .ee_hhvm
573573
574+ if os .path .isdir ("/etc/nginx/common" ) and (not
575+ os .path .isfile ("/etc/nginx/common/php-hhvm.conf" )):
576+ data = dict ()
577+ Log .debug (self , 'Writting the nginx configuration to '
578+ 'file /etc/nginx/common/php-hhvm.conf' )
579+ ee_nginx = open ('/etc/nginx/common/php-hhvm.conf' ,
580+ encoding = 'utf-8' , mode = 'w' )
581+ self .app .render ((data ), 'php-hhvm.mustache' ,
582+ out = ee_nginx )
583+ ee_nginx .close ()
584+
585+ Log .debug (self , 'Writting the nginx configuration to '
586+ 'file /etc/nginx/common/w3tc-hhvm.conf' )
587+ ee_nginx = open ('/etc/nginx/common/w3tc-hhvm.conf' ,
588+ encoding = 'utf-8' , mode = 'w' )
589+ self .app .render ((data ), 'w3tc-hhvm.mustache' , out = ee_nginx )
590+ ee_nginx .close ()
591+
592+ Log .debug (self , 'Writting the nginx configuration to '
593+ 'file /etc/nginx/common/wpfc-hhvm.conf' )
594+ ee_nginx = open ('/etc/nginx/common/wpfc-hhvm.conf' ,
595+ encoding = 'utf-8' , mode = 'w' )
596+ self .app .render ((data ), 'wpfc-hhvm.mustache' ,
597+ out = ee_nginx )
598+ ee_nginx .close ()
599+
600+ Log .debug (self , 'Writting the nginx configuration to '
601+ 'file /etc/nginx/common/wpsc-hhvm.conf' )
602+ ee_nginx = open ('/etc/nginx/common/wpsc-hhvm.conf' ,
603+ encoding = 'utf-8' , mode = 'w' )
604+ self .app .render ((data ), 'wpsc-hhvm.mustache' ,
605+ out = ee_nginx )
606+ ee_nginx .close ()
607+
574608 # Check if Nginx is allready installed and Pagespeed config there or not
575609 # If not then copy pagespeed config
576610 if self .app .pargs .pagespeed :
577- if (os .path .isdir ('/etc/nginx' ) and
611+ if (os .path .isfile ('/etc/nginx/nginx.conf ' ) and
578612 (not os .path .isfile ('/etc/nginx/conf.d/pagespeed.conf' ))):
579613 # Pagespeed configuration
580614 data = dict ()
0 commit comments