@@ -449,7 +449,7 @@ def post_pref(self, apt_packages, packages):
449449 " /etc/nginx/nginx.conf" )
450450
451451 # EasyEngine config for NGINX plus
452- data ['version' ] = EEVariables .ee_version
452+ data ['version' ] = EEVariables .ee_version
453453 Log .debug (self , 'Writting for nginx plus configuration'
454454 ' to file /etc/nginx/conf.d/ee-plus.conf' )
455455 ee_nginx = open ('/etc/nginx/conf.d/ee-plus.conf' ,
@@ -1605,7 +1605,15 @@ def install(self, packages=[], apt_packages=[], disp_msg=True):
16051605 Log .debug (self , "Setting apt_packages variable for Nginx" )
16061606
16071607 if not EEAptGet .is_installed (self , 'nginx-custom' ):
1608- apt_packages = apt_packages + EEVariables .ee_nginx
1608+ if not EEAptGet .is_installed (self , 'nginx-plus' ):
1609+ apt_packages = apt_packages + EEVariables .ee_nginx
1610+ else :
1611+ Log .info (self , "NGINX PLUS Detected ..." )
1612+ Log .info (self ,
1613+ "Installing EasyEngine Configurations for NGINX PLUS" )
1614+ apt = ["nginx-plus" ] + EEVariables .ee_nginx
1615+ #apt_packages = apt_packages + EEVariables.ee_nginx
1616+ self .post_pref (apt , packages )
16091617 else :
16101618 Log .debug (self , "Nginx already installed" )
16111619 Log .info (self , "Nginx already installed" )
0 commit comments