Fix clamav install
This commit is contained in:
@@ -265,7 +265,7 @@ class WOStackController(CementBaseController):
|
|||||||
if pargs.clamav:
|
if pargs.clamav:
|
||||||
Log.debug(self, "Setting apt_packages variable for ClamAV")
|
Log.debug(self, "Setting apt_packages variable for ClamAV")
|
||||||
if not WOAptGet.is_installed(self, 'clamav'):
|
if not WOAptGet.is_installed(self, 'clamav'):
|
||||||
apt_packages = apt_packages + ["clamav"]
|
apt_packages = apt_packages + WOVariables.wo_clamav
|
||||||
else:
|
else:
|
||||||
Log.debug(self, "ClamAV already installed")
|
Log.debug(self, "ClamAV already installed")
|
||||||
Log.info(self, "ClamAV already installed")
|
Log.info(self, "ClamAV already installed")
|
||||||
@@ -587,7 +587,7 @@ class WOStackController(CementBaseController):
|
|||||||
if pargs.clamav:
|
if pargs.clamav:
|
||||||
Log.debug(self, "Setting apt_packages variable for ClamAV")
|
Log.debug(self, "Setting apt_packages variable for ClamAV")
|
||||||
if WOAptGet.is_installed(self, 'clamav'):
|
if WOAptGet.is_installed(self, 'clamav'):
|
||||||
apt_packages = apt_packages + ["clamav"]
|
apt_packages = apt_packages + WOVariables.wo_clamav
|
||||||
|
|
||||||
# proftpd
|
# proftpd
|
||||||
if pargs.proftpd:
|
if pargs.proftpd:
|
||||||
@@ -793,7 +793,7 @@ class WOStackController(CementBaseController):
|
|||||||
if pargs.clamav:
|
if pargs.clamav:
|
||||||
Log.debug(self, "Setting apt_packages variable for ClamAV")
|
Log.debug(self, "Setting apt_packages variable for ClamAV")
|
||||||
if WOAptGet.is_installed(self, 'clamav'):
|
if WOAptGet.is_installed(self, 'clamav'):
|
||||||
apt_packages = apt_packages + ["clamav"]
|
apt_packages = apt_packages + WOVariables.wo_clamav
|
||||||
|
|
||||||
# proftpd
|
# proftpd
|
||||||
if pargs.proftpd:
|
if pargs.proftpd:
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ class WOVariables():
|
|||||||
wo_mysql_client = ["mariadb-client", "python3-mysql.connector"]
|
wo_mysql_client = ["mariadb-client", "python3-mysql.connector"]
|
||||||
|
|
||||||
wo_fail2ban = ["fail2ban"]
|
wo_fail2ban = ["fail2ban"]
|
||||||
|
wo_clamav = ["clamav", "clamav-freshclam"]
|
||||||
|
|
||||||
# Redis repo details
|
# Redis repo details
|
||||||
if wo_distro == 'ubuntu':
|
if wo_distro == 'ubuntu':
|
||||||
|
|||||||
Reference in New Issue
Block a user