Fix netdata
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user