From b5f68c445f17656e21fcda25fbb33fe681cbcc30 Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Thu, 12 Aug 2021 15:13:45 -0400 Subject: [PATCH] Conform to pi-apps package removal process --- apps/Lokinet/uninstall | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/Lokinet/uninstall b/apps/Lokinet/uninstall index 5ef821f..5319da4 100755 --- a/apps/Lokinet/uninstall +++ b/apps/Lokinet/uninstall @@ -7,10 +7,8 @@ function error { exit 1 } -sudo apt purge lokinet-gui -y || error "Failed to uninstall \"lokinet-gui\"!" -sudo apt purge lokinet -y || error "Failed to uninstall \"lokinet\"!" -sudo apt purge lokinet-bin -y || error "Failed to uninstall \"lokinet-bin\"!" - +"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1 + if [ -e /etc/systemd/system/lokinet.service.d ]; then echo "removing systemd override" sudo rm -r /etc/systemd/system/lokinet.service.d