From 033bc20fd7af19fb46b7c8818488ebfd0d23ebf5 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sun, 12 Apr 2020 11:01:39 +0200 Subject: [PATCH] make the uninstall work --- README.md | 2 +- uninstall.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 373b56b..6d420f0 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ sudo systemctl status adsbexchange-feed ### Removal / disabling the services: ``` -sudo bash -c $(cat /usr/local/share/adsbexchange/uninstall.sh) +sudo bash /usr/local/share/adsbexchange/uninstall.sh ``` If the above doesn't work, you may be using an old version that didn't have the uninstall script, just disable the services and the scripts won't run anymore: diff --git a/uninstall.sh b/uninstall.sh index 11146c8..3ddd7bb 100644 --- a/uninstall.sh +++ b/uninstall.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -x IPATH=/usr/local/share/adsbexchange @@ -9,3 +10,8 @@ rm -f /lib/systemd/system/adsbexchange-mlat.service rm -f /lib/systemd/system/adsbexchange-feed.service rm -rf "$IPATH" + +set +x + +echo ----- +echo "adsbexchange feed scripts have been uninstalled!"