Skip to content

Commit

Permalink
uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Feb 6, 2022
1 parent 4a7e4aa commit e186bfa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions uninstall.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit e186bfa

Please sign in to comment.