uninstall
This commit is contained in:
@@ -1,17 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
instance=tar1090
|
instance=tar1090
|
||||||
|
echo --------------
|
||||||
if [[ -n $1 ]]; then
|
if [[ -n $1 ]]; then
|
||||||
instance="tar1090-$1"
|
instance="tar1090-$1"
|
||||||
rm -rf "/usr/local/share/tar1090/html-$1"
|
rm -rf "/usr/local/share/tar1090/html-$1"
|
||||||
|
echo "Removing tar1090, instance name $instance!"
|
||||||
else
|
else
|
||||||
|
echo "Removing tar1090, all instances!"
|
||||||
rm -rf /usr/local/share/tar1090
|
rm -rf /usr/local/share/tar1090
|
||||||
rm -f /etc/lighttpd/conf-available/*tar1090*
|
rm -f /etc/lighttpd/conf-available/*tar1090*
|
||||||
rm -f /etc/lighttpd/conf-enabled/*tar1090*
|
rm -f /etc/lighttpd/conf-enabled/*tar1090*
|
||||||
fi
|
fi
|
||||||
echo --------------
|
echo --------------
|
||||||
echo "Removing tar1090, instance name $instance!"
|
|
||||||
echo --------------
|
|
||||||
|
|
||||||
systemctl stop "$instance"
|
systemctl stop "$instance"
|
||||||
systemctl disable "$instance"
|
systemctl disable "$instance"
|
||||||
|
|||||||
Reference in New Issue
Block a user