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!"