Linting
This commit is contained in:
15
uninstall.sh
15
uninstall.sh
@@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
instance=tar1090
|
||||
if [[ -n $1 ]]; then
|
||||
instance="tar1090-$1"
|
||||
@@ -11,19 +12,19 @@ echo --------------
|
||||
echo "Removing tar1090, instance name $instance!"
|
||||
echo --------------
|
||||
|
||||
systemctl stop $instance
|
||||
systemctl disable $instance
|
||||
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 "/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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user