Files
tar1090/uninstall.sh
Matthias Wirth 16b6468dc4 enable port 8504 on lighttpd by default
clean up some install script stuff
2020-03-15 21:48:57 +01:00

36 lines
877 B
Bash
Executable File

#!/bin/bash
instance=tar1090
if [[ -n $1 ]]; then
instance=$1
else
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
#rm -f /etc/default/$instance
echo "Configuration is left to be removed manually, you can use this command:"
echo "sudo rm /etc/default/$instance"
rm -f /lib/systemd/system/$instance.service
rm -f /etc/lighttpd/conf-available/88-$instance.conf
rm -f /etc/lighttpd/conf-enabled/88-$instance.conf
rm -f /etc/lighttpd/conf-available/99-$instance-webroot.conf
rm -f /etc/lighttpd/conf-enabled/99-$instance-webroot.conf
systemctl daemon-reload
systemctl restart lighttpd
echo --------------
echo "tar1090 is now gone! Shoo shoo!"