From e186bfa0b415fca61c6ea4754c69380b0cc58aef Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sun, 6 Feb 2022 16:05:00 +0100 Subject: [PATCH] uninstall --- uninstall.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/uninstall.sh b/uninstall.sh index 7be534f..0d53b89 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -1,17 +1,18 @@ #!/bin/bash instance=tar1090 +echo -------------- if [[ -n $1 ]]; then instance="tar1090-$1" rm -rf "/usr/local/share/tar1090/html-$1" + echo "Removing tar1090, instance name $instance!" else + echo "Removing tar1090, all instances!" rm -rf /usr/local/share/tar1090 rm -f /etc/lighttpd/conf-available/*tar1090* rm -f /etc/lighttpd/conf-enabled/*tar1090* fi echo -------------- -echo "Removing tar1090, instance name $instance!" -echo -------------- systemctl stop "$instance" systemctl disable "$instance"