|
|
@ -674,7 +674,7 @@ def site_package_check(self, stype): |
|
|
|
stack = EEStackController() |
|
|
|
stack.app = self.app |
|
|
|
if stype in ['html', 'proxy', 'php', 'mysql', 'wp', 'wpsubdir', |
|
|
|
'wpsubdomain']: |
|
|
|
'wpsubdomain', 'php7']: |
|
|
|
Log.debug(self, "Setting apt_packages variable for Nginx") |
|
|
|
|
|
|
|
# Check if server has nginx-custom package |
|
|
@ -1083,12 +1083,24 @@ def detSitePar(opts): |
|
|
|
cachetype = 'basic' |
|
|
|
else: |
|
|
|
cachetype = cachelist[0] |
|
|
|
elif False not in [x in ('php7','mysql','html') for x in typelist]: |
|
|
|
sitetype = 'mysql' |
|
|
|
if not cachelist: |
|
|
|
cachetype = 'basic' |
|
|
|
else: |
|
|
|
cachetype = cachelist[0] |
|
|
|
elif False not in [x in ('php','mysql') for x in typelist]: |
|
|
|
sitetype = 'mysql' |
|
|
|
if not cachelist: |
|
|
|
cachetype = 'basic' |
|
|
|
else: |
|
|
|
cachetype = cachelist[0] |
|
|
|
elif False not in [x in ('php7','mysql') for x in typelist]: |
|
|
|
sitetype = 'mysql' |
|
|
|
if not cachelist: |
|
|
|
cachetype = 'basic' |
|
|
|
else: |
|
|
|
cachetype = cachelist[0] |
|
|
|
elif False not in [x in ('html','mysql') for x in typelist]: |
|
|
|
sitetype = 'mysql' |
|
|
|
if not cachelist: |
|
|
@ -1101,6 +1113,12 @@ def detSitePar(opts): |
|
|
|
cachetype = 'basic' |
|
|
|
else: |
|
|
|
cachetype = cachelist[0] |
|
|
|
elif False not in [x in ('php7','html') for x in typelist]: |
|
|
|
sitetype = 'php' |
|
|
|
if not cachelist: |
|
|
|
cachetype = 'basic' |
|
|
|
else: |
|
|
|
cachetype = cachelist[0] |
|
|
|
elif False not in [x in ('wp','wpsubdir') for x in typelist]: |
|
|
|
sitetype = 'wpsubdir' |
|
|
|
if not cachelist: |
|
|
@ -1119,10 +1137,21 @@ def detSitePar(opts): |
|
|
|
cachetype = 'basic' |
|
|
|
else: |
|
|
|
cachetype = cachelist[0] |
|
|
|
elif False not in [x in ('wpsubdir','php7') for x in typelist]: |
|
|
|
sitetype = 'wpsubdir' |
|
|
|
if not cachelist: |
|
|
|
cachetype = 'basic' |
|
|
|
else: |
|
|
|
cachetype = cachelist[0] |
|
|
|
elif False not in [x in ('wpsubdomain','php7') for x in typelist]: |
|
|
|
sitetype = 'wpsubdomain' |
|
|
|
if not cachelist: |
|
|
|
cachetype = 'basic' |
|
|
|
else: |
|
|
|
cachetype = cachelist[0] |
|
|
|
else: |
|
|
|
raise RuntimeError("could not determine site and cache type") |
|
|
|
|
|
|
|
else: |
|
|
|
if not typelist and not cachelist: |
|
|
|
sitetype = None |
|
|
|
cachetype = None |
|
|
|