mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 06:48:00 +01:00
#123 option to keep index on uninstall
This commit is contained in:
parent
b34dae92f0
commit
d1c83f5a05
4 changed files with 18 additions and 12 deletions
|
@ -417,7 +417,17 @@ if [ ${check} -eq 1 ]; then choice="on"; fi
|
|||
if [ "${ElectRS}" != "${choice}" ]; then
|
||||
echo "ElectRS Setting changed .."
|
||||
anychange=1
|
||||
/home/admin/config.scripts/bonus.electrs.sh ${choice}
|
||||
extraparameter=""
|
||||
if [ "${choice}" = "off" ]; then
|
||||
whiptail --title "Delete Electrum Index?" \
|
||||
--yes-button "Keep Index" \
|
||||
--no-button "Delete Index" \
|
||||
--yesno "ElectRS is getting uninstalled. Do you also want to delete the Electrum Index? It contains no important data, but can take multiple hours to rebuild if needed again." 10 60
|
||||
if [ $? -eq 1 ]; then
|
||||
extraparameter="deleteindex"
|
||||
fi
|
||||
fi
|
||||
/home/admin/config.scripts/bonus.electrs.sh ${choice} ${extraparameter}
|
||||
errorOnInstall=$?
|
||||
if [ "${choice}" = "on" ]; then
|
||||
if [ ${errorOnInstall} -eq 0 ]; then
|
||||
|
|
|
@ -78,7 +78,7 @@ OPTIONS=(ZAP_IOS "Zap Wallet (iOS)" \
|
|||
|
||||
# Additinal Options with TOR
|
||||
if [ "${runBehindTor}" = "on" ]; then
|
||||
OPTIONS+=(FULLY_NODED "Fully Noded (IOS) over TOR")
|
||||
OPTIONS+=(FULLY_NODED "Fully Noded (IOS+TOR)")
|
||||
fi
|
||||
|
||||
CHOICE=$(whiptail --clear --title "Choose Mobile Wallet" --menu "" 13 50 7 "${OPTIONS[@]}" 2>&1 >/dev/tty)
|
||||
|
@ -141,7 +141,7 @@ case $CHOICE in
|
|||
whiptail --title "Install Zap from PlayStore on your Android device" \
|
||||
--yes-button "continue" \
|
||||
--no-button "link as QR code" \
|
||||
--yesno "Find & install the Zap Wallet on the Android Play Store:\n\n${appstoreLink}\n\nEasiest way to install scan QR code on LCD with phone.\n\nWhen installed and started -> continue." 10 60
|
||||
--yesno "Find & install the Zap Wallet on the Android Play Store:\n\n${appstoreLink}\n\nEasiest way to install scan QR code on LCD with phone.\n\nWhen installed and started -> continue." 10 65
|
||||
if [ $? -eq 1 ]; then
|
||||
/home/admin/config.scripts/blitz.lcd.sh qr-console ${appstoreLink}
|
||||
fi
|
||||
|
@ -168,10 +168,10 @@ case $CHOICE in
|
|||
choose_IP_or_TOR
|
||||
appstoreLink="https://play.google.com/store/apps/details?id=com.zeusln.zeus"
|
||||
/home/admin/config.scripts/blitz.lcd.sh qr ${appstoreLink}
|
||||
whiptail --title "Install Shango on your Android Phone" \
|
||||
whiptail --title "Install Zeus on your Android Phone" \
|
||||
--yes-button "continue" \
|
||||
--no-button "link as QR code" \
|
||||
--yesno "Find and install the Zeus Wallet on the Android Play Store:\n\n${appstoreLink}\n\nEasiest way to install scan QR code on LCD with phone.\n\nWhen installed and started -> continue." 10 60
|
||||
--yesno "Find and install the Zeus Wallet on the Android Play Store:\n\n${appstoreLink}\n\nEasiest way to install scan QR code on LCD with phone.\n\nWhen installed and started -> continue." 10 65
|
||||
if [ $? -eq 1 ]; then
|
||||
/home/admin/config.scripts/blitz.lcd.sh qr-console ${appstoreLink}
|
||||
fi
|
||||
|
|
|
@ -449,11 +449,7 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then
|
|||
sudo rm -rf /home/electrs/.rustup
|
||||
sudo rm -rf /home/electrs/.profile
|
||||
|
||||
|
||||
if [ "$2" == "keepindex" ]; then
|
||||
echo "# keeping index db"
|
||||
else
|
||||
# delete also db by default (because in case HDD is full, deactivating should free data)
|
||||
if [ "$2" == "deleteindex" ]; then
|
||||
sudo rm -rf /mnt/hdd/app-storage/electrs/
|
||||
fi
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ fi
|
|||
# check if it is installed
|
||||
# https://github.com/rootzoll/lndconnect
|
||||
# using own fork of lndconnet because of this commit to fix for better QR code:
|
||||
commit=e76226f2dd3cce3c169a7161f66612c2662407fa
|
||||
commit=82d7103bb8c8dd3c8ae8de89e3bc061eef82bb8f
|
||||
isInstalled=$(lndconnect -h 2>/dev/null | grep "nocert" -c)
|
||||
if [ $isInstalled -eq 0 ] || [ "$1" == "update" ]; then
|
||||
echo "# Installing lndconnect.."
|
||||
|
@ -39,7 +39,7 @@ if [ $isInstalled -eq 0 ] || [ "$1" == "update" ]; then
|
|||
# Install latest lndconnect from source:
|
||||
go get -d github.com/rootzoll/lndconnect
|
||||
cd $GOPATH/src/github.com/rootzoll/lndconnect
|
||||
//git checkout $commit
|
||||
git checkout $commit
|
||||
make
|
||||
else
|
||||
echo "# lndconnect is already installed"
|
||||
|
|
Loading…
Add table
Reference in a new issue