mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-13 03:30:49 +02:00
add the SYSTEM menu for parallel chains
This commit is contained in:
parent
53d4d90b34
commit
7284a25479
@ -92,7 +92,7 @@ OPTIONS+=(SERVICES "Additional Apps & Services on ${CHAIN}")
|
|||||||
HEIGHT=$((HEIGHT+1))
|
HEIGHT=$((HEIGHT+1))
|
||||||
CHOICE_HEIGHT=$((CHOICE_HEIGHT+1))
|
CHOICE_HEIGHT=$((CHOICE_HEIGHT+1))
|
||||||
fi
|
fi
|
||||||
#TODO OPTIONS+=(SYSTEM "Monitoring & Configuration")
|
OPTIONS+=(SYSTEM "Monitoring & Configuration")
|
||||||
#TODO OPTIONS+=(CONNECT "Connect Apps & Show Credentials")
|
#TODO OPTIONS+=(CONNECT "Connect Apps & Show Credentials")
|
||||||
|
|
||||||
if [ $nonDefaultLNtype = 1 ];then
|
if [ $nonDefaultLNtype = 1 ];then
|
||||||
|
@ -5,6 +5,9 @@ echo "get raspiblitz config"
|
|||||||
source /home/admin/raspiblitz.info
|
source /home/admin/raspiblitz.info
|
||||||
source /mnt/hdd/raspiblitz.conf
|
source /mnt/hdd/raspiblitz.conf
|
||||||
|
|
||||||
|
# source <(/home/admin/config.scripts/network.aliases.sh getvars <lnd|cln> <mainnet|testnet|signet>)
|
||||||
|
source <(/home/admin/config.scripts/network.aliases.sh getvars $1 $2)
|
||||||
|
|
||||||
# BASIC MENU INFO
|
# BASIC MENU INFO
|
||||||
HEIGHT=12 # add 6 to CHOICE_HEIGHT + MENU lines
|
HEIGHT=12 # add 6 to CHOICE_HEIGHT + MENU lines
|
||||||
WIDTH=64
|
WIDTH=64
|
||||||
@ -39,26 +42,33 @@ CHOICE=$(dialog --clear \
|
|||||||
|
|
||||||
case $CHOICE in
|
case $CHOICE in
|
||||||
${network}LOG)
|
${network}LOG)
|
||||||
|
if [ ${CHAIN} = signet ]; then
|
||||||
|
bitcoinlogpath="sudo tail -f /mnt/hdd/bitcoin/signet/debug.log"
|
||||||
|
elif [ ${CHAIN} = testnet ]; then
|
||||||
|
bitcoinlogpath="sudo tail -f /mnt/hdd/bitcoin/testnet3/debug.log"
|
||||||
|
elif [ ${CHAIN} = mainnet ]; then
|
||||||
|
bitcoinlogpath="sudo tail -f /mnt/hdd/bitcoin/debug.log"
|
||||||
|
fi
|
||||||
clear
|
clear
|
||||||
echo
|
echo
|
||||||
echo "Will follow the /mnt/hdd/${network}/debug.log"
|
echo "Will follow the ${bitcoinlogpath}"
|
||||||
echo "running: 'sudo tail -n 30 -f /mnt/hdd/${network}/debug.log'"
|
echo "running: 'sudo tail -n 30 -f ${bitcoinlogpath}'"
|
||||||
echo
|
echo
|
||||||
echo "Press ENTER to continue"
|
echo "Press ENTER to continue"
|
||||||
echo "use CTRL+C any time to abort .. then use command 'raspiblitz' to return to menu"
|
echo "use CTRL+C any time to abort .. then use command 'raspiblitz' to return to menu"
|
||||||
echo "###############################################################################"
|
echo "###############################################################################"
|
||||||
read key
|
read key
|
||||||
sudo tail -n 30 -f /mnt/hdd/${network}/debug.log;;
|
sudo tail -n 30 -f ${bitcoinlogpath};;
|
||||||
${network}CONF)
|
${network}CONF)
|
||||||
if /home/admin/config.scripts/blitz.setconf.sh "/mnt/hdd/${network}/${network}.conf" "root"
|
if /home/admin/config.scripts/blitz.setconf.sh "/mnt/hdd/${network}/${network}.conf" "root"
|
||||||
then
|
then
|
||||||
whiptail \
|
whiptail \
|
||||||
--title "Restart" --yes-button "Restart" --no-button "Not now" \
|
--title "Restart" --yes-button "Restart" --no-button "Not now" \
|
||||||
--yesno "To apply the new settings ${network}d needs to restart.
|
--yesno "To apply the new settings ${netprefix}${network}d needs to restart.
|
||||||
Do you want to restart ${network}d now?" 10 55
|
Do you want to restart ${netprefix}${network}d now?" 10 55
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "# Restarting ${network}d"
|
echo "# Restarting ${netprefix}${network}d"
|
||||||
sudo systemctl restart ${network}d
|
sudo systemctl restart ${netprefix}${network}d
|
||||||
else
|
else
|
||||||
echo "# Continue without restarting."
|
echo "# Continue without restarting."
|
||||||
fi
|
fi
|
||||||
@ -77,7 +87,7 @@ case $CHOICE in
|
|||||||
read key
|
read key
|
||||||
sudo tail -n 30 -f /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log;;
|
sudo tail -n 30 -f /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log;;
|
||||||
LNDCONF)
|
LNDCONF)
|
||||||
if /home/admin/config.scripts/blitz.setconf.sh "/mnt/hdd/lnd/lnd.conf" "root"
|
if /home/admin/config.scripts/blitz.setconf.sh "/mnt/hdd/lnd/${netprefix}lnd.conf" "root"
|
||||||
then
|
then
|
||||||
whiptail \
|
whiptail \
|
||||||
--title "Restart" --yes-button "Restart" --no-button "Not now" \
|
--title "Restart" --yes-button "Restart" --no-button "Not now" \
|
||||||
|
Loading…
Reference in New Issue
Block a user