Fix netdata
This commit is contained in:
@@ -1179,8 +1179,7 @@ def post_pref(self, apt_packages, packages, upgrade=False):
|
|||||||
'SEND_EMAIL="NO"')
|
'SEND_EMAIL="NO"')
|
||||||
|
|
||||||
WOFileUtils.searchreplace(
|
WOFileUtils.searchreplace(
|
||||||
self, "{0}etc/netdata/orig/health_alarm_notify.conf"
|
self, "{0}etc/netdata/orig/health_alarm_notify.conf",
|
||||||
.format(wo_netdata),
|
|
||||||
'SEND_EMAIL="YES"',
|
'SEND_EMAIL="YES"',
|
||||||
'SEND_EMAIL="NO"')
|
'SEND_EMAIL="NO"')
|
||||||
# check if mysql credentials are available
|
# check if mysql credentials are available
|
||||||
|
|||||||
@@ -362,17 +362,9 @@ class WOStackUpgradeController(CementBaseController):
|
|||||||
WOShellExec.cmd_exec(
|
WOShellExec.cmd_exec(
|
||||||
self,
|
self,
|
||||||
"bash /var/lib/wo/tmp/kickstart.sh "
|
"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)
|
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")
|
Log.valide(self, "Upgrading Netdata")
|
||||||
|
|
||||||
if WOAptGet.is_selected(self, 'WordOps Dashboard', packages):
|
if WOAptGet.is_selected(self, 'WordOps Dashboard', packages):
|
||||||
|
|||||||
Reference in New Issue
Block a user