Fix php8.1 package install
This commit is contained in:
@@ -6,7 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
|
|
||||||
## Releases
|
## Releases
|
||||||
|
|
||||||
### v3.9.x - [Unreleased]
|
### v3.14.0 - [Unreleased]
|
||||||
|
|
||||||
|
#### Added
|
||||||
|
|
||||||
|
- PHP 8.0 and 8.1 support
|
||||||
|
|
||||||
#### v3.13.2 - 2020-10-27
|
#### v3.13.2 - 2020-10-27
|
||||||
|
|
||||||
|
|||||||
@@ -282,7 +282,8 @@ class WOSiteUpdateController(CementBaseController):
|
|||||||
(stype == 'wpsubdir' and oldsitetype in ['wpsubdomain']) or
|
(stype == 'wpsubdir' and oldsitetype in ['wpsubdomain']) or
|
||||||
(stype == 'wpsubdomain' and oldsitetype in ['wpsubdir']) or
|
(stype == 'wpsubdomain' and oldsitetype in ['wpsubdir']) or
|
||||||
(stype == oldsitetype and cache == oldcachetype)) and
|
(stype == oldsitetype and cache == oldcachetype)) and
|
||||||
not (pargs.php72 or pargs.php73 or pargs.php74 or pargs.php80 or
|
not (pargs.php72 or pargs.php73 or
|
||||||
|
pargs.php74 or pargs.php80 or
|
||||||
pargs.php81)):
|
pargs.php81)):
|
||||||
Log.info(self, Log.FAIL + "can not update {0} {1} to {2} {3}".
|
Log.info(self, Log.FAIL + "can not update {0} {1} to {2} {3}".
|
||||||
format(oldsitetype, oldcachetype, stype, cache))
|
format(oldsitetype, oldcachetype, stype, cache))
|
||||||
@@ -302,7 +303,8 @@ class WOSiteUpdateController(CementBaseController):
|
|||||||
data = dict(
|
data = dict(
|
||||||
site_name=wo_domain, www_domain=wo_www_domain,
|
site_name=wo_domain, www_domain=wo_www_domain,
|
||||||
static=False, basic=True, wp=False, wpfc=False,
|
static=False, basic=True, wp=False, wpfc=False,
|
||||||
php72=False, php73=False, php74=False, php80=False, php81=False,
|
php72=False, php73=False, php74=False,
|
||||||
|
php80=False, php81=False,
|
||||||
wpsc=False, wpredis=False, wprocket=False, wpce=False,
|
wpsc=False, wpredis=False, wprocket=False, wpce=False,
|
||||||
multisite=False, wpsubdir=False, webroot=wo_site_webroot,
|
multisite=False, wpsubdir=False, webroot=wo_site_webroot,
|
||||||
currsitetype=oldsitetype, currcachetype=oldcachetype)
|
currsitetype=oldsitetype, currcachetype=oldcachetype)
|
||||||
@@ -329,7 +331,8 @@ class WOSiteUpdateController(CementBaseController):
|
|||||||
if ((pargs.php72 or pargs.php73 or
|
if ((pargs.php72 or pargs.php73 or
|
||||||
pargs.php74 or pargs.php80 or pargs.php81) and (not data)):
|
pargs.php74 or pargs.php80 or pargs.php81) and (not data)):
|
||||||
Log.debug(
|
Log.debug(
|
||||||
self, "pargs php72, or php73, or php74, or php80, or php81 enabled")
|
self, "pargs php72, or php73, or php74, "
|
||||||
|
"or php80, or php81 enabled")
|
||||||
data = dict(
|
data = dict(
|
||||||
site_name=wo_domain,
|
site_name=wo_domain,
|
||||||
www_domain=wo_www_domain,
|
www_domain=wo_www_domain,
|
||||||
@@ -475,9 +478,9 @@ class WOSiteUpdateController(CementBaseController):
|
|||||||
data['php80'] = bool(old_php80 is True)
|
data['php80'] = bool(old_php80 is True)
|
||||||
Log.debug(self, "data php80 = {0}".format(data['php80']))
|
Log.debug(self, "data php80 = {0}".format(data['php80']))
|
||||||
php80 = bool(old_php80 is True)
|
php80 = bool(old_php80 is True)
|
||||||
data['php80'] = bool(old_php80 is True)
|
data['php81'] = bool(old_php81 is True)
|
||||||
Log.debug(self, "data php80 = {0}".format(data['php80']))
|
Log.debug(self, "data php81 = {0}".format(data['php81']))
|
||||||
php80 = bool(old_php80 is True)
|
php81 = bool(old_php81 is True)
|
||||||
|
|
||||||
if pargs.letsencrypt:
|
if pargs.letsencrypt:
|
||||||
acme_domains = []
|
acme_domains = []
|
||||||
@@ -578,8 +581,8 @@ class WOSiteUpdateController(CementBaseController):
|
|||||||
data['wo_php'] = 'php81'
|
data['wo_php'] = 'php81'
|
||||||
check_php_version = '8.1'
|
check_php_version = '8.1'
|
||||||
else:
|
else:
|
||||||
data['wo_php'] = 'php73'
|
data['wo_php'] = 'php80'
|
||||||
check_php_version = '7.3'
|
check_php_version = '8.0'
|
||||||
|
|
||||||
if pargs.hsts:
|
if pargs.hsts:
|
||||||
data['hsts'] = bool(pargs.hsts == "on")
|
data['hsts'] = bool(pargs.hsts == "on")
|
||||||
|
|||||||
Reference in New Issue
Block a user