@cryptotaxi247 / netdata-1 / commits / 5a561f56a

netdata/packaging/uninstaller: Update uninstall document (#5678)

* netdata/packaging/uninstaller: Update readme * netdata/packaging/uninstaller: In documentation, use correct path reference, also offer the alternative to existing installations

Paul Katsoulakis committed Mar 22, 2019 at 10:55 UTC 5a561f56a02957a2e7ed71d943be030f450dedd0
1 file changed +8 -1
packaging/installer/UNINSTALL.md
+8 -1
@@ -14,12 +14,19 @@ A workflow for uninstallation looks like this:
14 NETDATA_PREFIX="<installation prefix>" # put what you used as a parameter to shell installed `--install` flag. Otherwise it should be empty
15 NETDATA_ADDED_TO_GROUPS="<additional groups>" # Additional groups for a user running netdata process
16 ```
17 -3. Download, chmod and run netdata-uninstaller.sh.
17 +3. Run `netdata-uninstaller.sh` as follows
18 +```
19 +${NETDATA_PREFIX}/usr/libexec/netdata-uninstaller.sh --yes --env <environment_file>
20 +```
21 +
22 +Note: Existing installations may still need to download the file if it's not present.
23 +To execute uninstall in that case, run the following commands:
24 ```
25 wget https://raw.githubusercontent.com/netdata/netdata/master/packaging/installer/netdata-uninstaller.sh
26 chmod +x ./netdata-uninstaller.sh
27 ./netdata-uninstaller.sh --yes --env <environment_file>
28 ```
29 +
30 The default `environment_file` is `/etc/netdata/.environment`.
31
32 Note: This uninstallation method assumes previous installation with netdata-installer.sh or kickstart script. Currently using it when netdata was installed by a package manager can work or cause unexpected results.