Set php 7.4 as default php version

* `wo stack install` will check php version to install in  /etc/wo/wo.conf
This commit is contained in:
VirtuBox
2020-11-07 21:06:26 +01:00
parent c8a70deb8d
commit 78cd626d75
2 changed files with 17 additions and 7 deletions

View File

@@ -146,8 +146,18 @@ class WOStackController(CementBaseController):
pargs.proftpd = True
if pargs.web:
if self.app.config.has_section('php'):
config_php_ver = self.app.config.get(
'php', 'version')
if config_php_ver == '7.2':
pargs.php72 = True
elif config_php_ver == '7.3':
pargs.php73 = True
elif config_php_ver == '7.4':
pargs.php74 = True
else:
pargs.php74 = True
pargs.nginx = True
pargs.php73 = True
pargs.mysql = True
pargs.wpcli = True
pargs.sendmail = True
@@ -476,7 +486,7 @@ class WOStackController(CementBaseController):
if not (WOAptGet.is_installed(self, 'php7.2-fpm') or
WOAptGet.is_installed(self, 'php7.3-fpm') or
WOAptGet.is_installed(self, 'php7.4-fpm')):
pargs.php = True
pargs.php74 = True
Log.debug(self, "Setting packages variable for utils")
packages = packages + [[
"https://raw.githubusercontent.com"