From 0e6a26760130dc4351c0239b214aef58d61bdb67 Mon Sep 17 00:00:00 2001 From: Abbas Elmas Date: Mon, 2 Sep 2019 00:08:38 +0300 Subject: [PATCH 1/2] netdata uninstall not work sudo wo stack purge --netdata was not working on my setup. Uninstall script was wrong located. It is under another netdata folder as you can see in my PR. I have manually triggered and uninstall netdata. --- wo/cli/plugins/stack.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wo/cli/plugins/stack.py b/wo/cli/plugins/stack.py index d9feefc..f282eda 100644 --- a/wo/cli/plugins/stack.py +++ b/wo/cli/plugins/stack.py @@ -672,12 +672,12 @@ class WOStackController(CementBaseController): 'kickstart.sh']).issubset(set(packages))): if WOVariables.wo_distro == 'Raspbian': WOShellExec.cmd_exec(self, "bash /usr/" - "libexec/netdata-" - "uninstaller.sh -y -f") + "libexec/netdata/" + "netdata-uninstaller.sh -y -f") else: WOShellExec.cmd_exec(self, "bash /opt/netdata/usr/" - "libexec/netdata-" - "uninstaller.sh -y -f") + "libexec/netdata/" + "netdata-uninstaller.sh -y -f") if (packages): Log.info(self, "Removing packages, please wait...") From 34ec2508a6ebb36571b1539d4129518f0386e2e2 Mon Sep 17 00:00:00 2001 From: Abbas Elmas Date: Mon, 2 Sep 2019 00:17:16 +0300 Subject: [PATCH 2/2] one more uninstaller script location corrected line 856 one more netdata uninstaller script was wrong located. --- wo/cli/plugins/stack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wo/cli/plugins/stack.py b/wo/cli/plugins/stack.py index f282eda..b11de59 100644 --- a/wo/cli/plugins/stack.py +++ b/wo/cli/plugins/stack.py @@ -644,7 +644,7 @@ class WOStackController(CementBaseController): if pargs.netdata: Log.debug(self, "Removing Netdata") if os.path.isfile('/opt/netdata/usr/' - 'libexec/netdata-uninstaller.sh'): + 'libexec/netdata/netdata-uninstaller.sh'): packages = packages + ['/var/lib/wo/tmp/kickstart.sh'] if pargs.dashboard: @@ -853,7 +853,7 @@ class WOStackController(CementBaseController): if pargs.netdata: Log.debug(self, "Removing Netdata") if os.path.isfile('/opt/netdata/usr/' - 'libexec/netdata-uninstaller.sh'): + 'libexec/netdata/netdata-uninstaller.sh'): packages = packages + ['/var/lib/wo/tmp/kickstart.sh'] if pargs.dashboard: