Fix netdata

This commit is contained in:
VirtuBox
2023-08-13 11:59:20 +02:00
parent 88d0a93d77
commit 813eb392a9
2 changed files with 3 additions and 12 deletions

View File

@@ -1179,8 +1179,7 @@ def post_pref(self, apt_packages, packages, upgrade=False):
'SEND_EMAIL="NO"')
WOFileUtils.searchreplace(
self, "{0}etc/netdata/orig/health_alarm_notify.conf"
.format(wo_netdata),
self, "{0}etc/netdata/orig/health_alarm_notify.conf",
'SEND_EMAIL="YES"',
'SEND_EMAIL="NO"')
# check if mysql credentials are available

View File

@@ -362,17 +362,9 @@ class WOStackUpgradeController(CementBaseController):
WOShellExec.cmd_exec(
self,
"bash /var/lib/wo/tmp/kickstart.sh "
"--dont-wait --no-updates --stable-channel",
"--dont-wait --no-updates --stable-channel "
"--reinstall-even-if-unsafe",
errormsg='', log=False)
if (os.path.exists('/opt/netdata') and
not os.path.exists(
'/opt/netdata/var/run/netdata/netdata.pid')):
WOShellExec.cmd_exec(
self,
'bash /var/lib/wo/tmp/kickstart.sh '
'--dont-wait --no-updates '
'--stable-channel --reinstall-even-if-unsafe',
errormsg='', log=False)
Log.valide(self, "Upgrading Netdata")
if WOAptGet.is_selected(self, 'WordOps Dashboard', packages):