mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-09 20:32:52 +02:00
RTL uninstall option
This commit is contained in:
@@ -139,6 +139,8 @@ else
|
|||||||
|
|
||||||
if [ ${runningRTL} -eq 0 ]; then
|
if [ ${runningRTL} -eq 0 ]; then
|
||||||
OPTIONS+=(RTL "Install RTL Web Interface")
|
OPTIONS+=(RTL "Install RTL Web Interface")
|
||||||
|
else
|
||||||
|
OPTIONS+=(RTL "REMOVE RTL Web Interface")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# final Options
|
# final Options
|
||||||
|
@@ -9,13 +9,21 @@ localip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1
|
|||||||
echo "*** Check if RTL is installed ***"
|
echo "*** Check if RTL is installed ***"
|
||||||
isInstalled=$(sudo ls /etc/systemd/system/RTL.service | grep -c 'RTL.service')
|
isInstalled=$(sudo ls /etc/systemd/system/RTL.service | grep -c 'RTL.service')
|
||||||
if [ ${isInstalled} -eq 1 ]; then
|
if [ ${isInstalled} -eq 1 ]; then
|
||||||
echo "!! FAIL - RTL Service is already installed."
|
|
||||||
echo "Try to open the following URL in your local webrowser"
|
echo "*** Dialog ***"
|
||||||
echo "and unlock your wallet from there with PASSWORD C."
|
dialog --title "Deinstall: Ride The Lightning Web Interface" --yesno "RTL is installed. You you want to remove?" 5 50
|
||||||
echo "---> http://${localip}:3000"
|
response=$?
|
||||||
echo ""
|
case $response in
|
||||||
echo "If its still not running, check service with:"
|
1) exit 1 ;;
|
||||||
echo "sudo systemctl status RTL"
|
esac
|
||||||
|
clear
|
||||||
|
|
||||||
|
echo "*** REMOVING RTL ***"
|
||||||
|
sudo systemctl stop RTL
|
||||||
|
sudo systemctl disable RTL
|
||||||
|
sudo rm /etc/systemd/system/RTL.service
|
||||||
|
sudo rm -r /home/admin/RTL
|
||||||
|
echo "OK done."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -25,6 +33,7 @@ response=$?
|
|||||||
case $response in
|
case $response in
|
||||||
1) exit 1 ;;
|
1) exit 1 ;;
|
||||||
esac
|
esac
|
||||||
|
clear
|
||||||
|
|
||||||
# disable RPC listen
|
# disable RPC listen
|
||||||
# to prevent tls cer auth error
|
# to prevent tls cer auth error
|
||||||
|
Reference in New Issue
Block a user