From 45aa3a4686db0f3e7639941e23f3b578a258d2ca Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 26 May 2018 07:40:17 +0000 Subject: [PATCH] add unistaller, update installer --- installer/get.sh | 4 ++-- installer/uninstall-purge.sh | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 installer/uninstall-purge.sh diff --git a/installer/get.sh b/installer/get.sh index 942ec72..516fe64 100644 --- a/installer/get.sh +++ b/installer/get.sh @@ -202,7 +202,7 @@ echo "==============================================" echo " Privacy Settings in Config" echo "==============================================" echo "" -echo "The example config file /etc/telebit/telebitd.yml opts-in to" +echo "The example config file /etc/$my_user/$my_app.yml opts-in to" echo "contributing telemetrics and receiving infrequent relevant updates" echo "(probably once per quarter or less) such as important notes on" echo "a new release, an important API change, etc. No spam." @@ -219,7 +219,7 @@ echo "==============================================" echo "" echo "Edit the config and restart, if desired:" echo "" -echo " sudo vim /etc/telebit/telebitd.yml" +echo " sudo vim /etc/$my_user/$my_app.yml" echo " sudo systemctl restart $my_app" echo "" echo "Or disabled the service and start manually:" diff --git a/installer/uninstall-purge.sh b/installer/uninstall-purge.sh new file mode 100644 index 0000000..b6b493b --- /dev/null +++ b/installer/uninstall-purge.sh @@ -0,0 +1,3 @@ +rm -rf /opt/telebitd/ /etc/system/systemd/telebitd.service /etc/telebit/ /usr/local/bin/telebitd +userdel -r telebit +groupdel telebit