Fix netdata conf path
This commit is contained in:
@@ -1175,10 +1175,11 @@ def post_pref(self, apt_packages, packages, upgrade=False):
|
|||||||
'SEND_EMAIL="YES"',
|
'SEND_EMAIL="YES"',
|
||||||
'SEND_EMAIL="NO"')
|
'SEND_EMAIL="NO"')
|
||||||
|
|
||||||
WOFileUtils.searchreplace(
|
if os.path.isdir('/etc/netdata/orig/health_alarm_notify.conf'):
|
||||||
self, "{0}etc/netdata/orig/health_alarm_notify.conf",
|
WOFileUtils.searchreplace(
|
||||||
'SEND_EMAIL="YES"',
|
self, "/etc/netdata/orig/health_alarm_notify.conf",
|
||||||
'SEND_EMAIL="NO"')
|
'SEND_EMAIL="YES"',
|
||||||
|
'SEND_EMAIL="NO"')
|
||||||
# check if mysql credentials are available
|
# check if mysql credentials are available
|
||||||
if WOShellExec.cmd_exec(self, "mysqladmin ping"):
|
if WOShellExec.cmd_exec(self, "mysqladmin ping"):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user