Missing data

This commit is contained in:
VirtuBox
2019-08-31 14:27:47 +02:00
parent 5af7a42d2e
commit d4e1ce71bb

View File

@@ -357,6 +357,7 @@ def post_pref(self, apt_packages, packages, upgrade=False):
# 22222 port settings # 22222 port settings
if not os.path.isfile('/etc/nginx/sites-available/22222'): if not os.path.isfile('/etc/nginx/sites-available/22222'):
data = dict(webroot=ngxroot)
WOTemplate.render( WOTemplate.render(
self, self,
'/etc/nginx/sites-available/22222', '/etc/nginx/sites-available/22222',
@@ -497,6 +498,7 @@ def post_pref(self, apt_packages, packages, upgrade=False):
WOVariables.wo_fqdn)]) WOVariables.wo_fqdn)])
if not os.path.isfile("/opt/cf-update.sh"): if not os.path.isfile("/opt/cf-update.sh"):
data = dict()
WOTemplate.render(self, '/opt/cf-update.sh', WOTemplate.render(self, '/opt/cf-update.sh',
'cf-update.mustache', 'cf-update.mustache',
data, overwrite=False) data, overwrite=False)
@@ -1177,14 +1179,15 @@ def post_pref(self, apt_packages, packages, upgrade=False):
if set(WOVariables.wo_clamav).issubset(set(apt_packages)): if set(WOVariables.wo_clamav).issubset(set(apt_packages)):
Log.debug(self, "Setting up freshclam cronjob") Log.debug(self, "Setting up freshclam cronjob")
if not os.path.isfile("/opt/freshclam.sh"): if not os.path.isfile("/opt/freshclam.sh"):
data = dict()
WOTemplate.render(self, '/opt/freshclam.sh', WOTemplate.render(self, '/opt/freshclam.sh',
'freshclam.mustache', 'freshclam.mustache',
data, overwrite=False) data, overwrite=False)
WOFileUtils.chmod(self, "/opt/freshclam.sh", 0o775) WOFileUtils.chmod(self, "/opt/freshclam.sh", 0o775)
# WOCron.setcron_weekly(self, '/opt/freshclam.sh ' WOCron.setcron_weekly(self, '/opt/freshclam.sh '
# '> /dev/null 2>&1', '> /dev/null 2>&1',
# comment='ClamAV freshclam cronjob ' comment='ClamAV freshclam cronjob '
# 'added by WordOps') 'added by WordOps')
if (packages): if (packages):
# WP-CLI # WP-CLI