Fix Netdata on raspbian

This commit is contained in:
VirtuBox
2019-08-28 14:22:11 +02:00
parent f40d356875
commit 13a5cea8e2
3 changed files with 35 additions and 16 deletions

View File

@@ -89,7 +89,8 @@ class WOStackStatusController(CementBaseController):
# netdata
if pargs.netdata:
if os.path.isdir("/opt/netdata"):
if (os.path.isdir("/opt/netdata") or
os.path.isdir("/etc/netdata")):
services = services + ['netdata']
else:
Log.info(self, "Netdata is not installed")
@@ -177,7 +178,8 @@ class WOStackStatusController(CementBaseController):
# netdata
if pargs.netdata:
if os.path.isdir("/opt/netdata"):
if (os.path.isdir("/opt/netdata") or
os.path.isdir("/etc/netdata")):
services = services + ['netdata']
else:
Log.info(self, "Netdata is not installed")
@@ -261,7 +263,8 @@ class WOStackStatusController(CementBaseController):
# netdata
if pargs.netdata:
if os.path.isdir("/opt/netdata"):
if (os.path.isdir("/opt/netdata") or
os.path.isdir("/etc/netdata")):
services = services + ['netdata']
else:
Log.info(self, "Netdata is not installed")
@@ -345,7 +348,8 @@ class WOStackStatusController(CementBaseController):
# netdata
if pargs.netdata:
if os.path.isdir("/opt/netdata"):
if (os.path.isdir("/opt/netdata") or
os.path.isdir("/etc/netdata")):
services = services + ['netdata']
else:
Log.info(self, "Netdata is not installed")
@@ -429,7 +433,8 @@ class WOStackStatusController(CementBaseController):
# netdata
if pargs.netdata:
if os.path.isdir("/opt/netdata"):
if (os.path.isdir("/opt/netdata") or
os.path.isdir("/etc/netdata")):
services = services + ['netdata']
else:
Log.info(self, "Netdata is not installed")