Fix wo stack install

This commit is contained in:
VirtuBox
2023-08-26 14:33:59 +02:00
parent 1487a8c8d4
commit 36d70b4ff9
2 changed files with 9 additions and 8 deletions

View File

@@ -119,13 +119,6 @@ class WOStackController(CementBaseController):
pargs.admin = True
pargs.fail2ban = True
if pargs.php:
if self.app.config.has_section('php'):
config_php_ver = self.app.config.get(
'php', 'version')
current_php = config_php_ver.replace(".", "")
setattr(self.app.pargs, 'php{0}'.format(current_php), True)
if pargs.mariadb:
pargs.mysql = True
@@ -165,6 +158,13 @@ class WOStackController(CementBaseController):
pargs.clamav = True
pargs.ngxblocker = True
if pargs.php:
if self.app.config.has_section('php'):
config_php_ver = self.app.config.get(
'php', 'version')
current_php = config_php_ver.replace(".", "")
setattr(self.app.pargs, 'php{0}'.format(current_php), True)
# Nginx
if pargs.nginx:
Log.debug(self, "Setting apt_packages variable for Nginx")