reorder main menu

This commit is contained in:
rootzoll 2020-02-17 22:07:29 +01:00
parent 0fe02b69ce
commit 1dfb3f102f

View file

@ -74,14 +74,14 @@ OPTIONS+=(MOBILE "Connect Mobile Wallet")
OPTIONS+=(EXPORT "Macaroons and TLS.cert") OPTIONS+=(EXPORT "Macaroons and TLS.cert")
OPTIONS+=(NAME "Change Name/Alias of Node") OPTIONS+=(NAME "Change Name/Alias of Node")
OPTIONS+=(PASSWORD "Change Passwords") OPTIONS+=(PASSWORD "Change Passwords")
OPTIONS+=(CASHOUT "Remove Funds from LND")
# Depending Options
openChannels=$(sudo -u bitcoin /usr/local/bin/lncli --chain=${network} --network=${chain}net listchannels 2>/dev/null | jq '.[] | length') openChannels=$(sudo -u bitcoin /usr/local/bin/lncli --chain=${network} --network=${chain}net listchannels 2>/dev/null | jq '.[] | length')
if [ ${#openChannels} -gt 0 ] && [ ${openChannels} -gt 0 ]; then if [ ${#openChannels} -gt 0 ] && [ ${openChannels} -gt 0 ]; then
OPTIONS+=(CLOSEALL "Close all open Channels") OPTIONS+=(CLOSEALL "Close all open Channels")
fi fi
OPTIONS+=(CASHOUT "Remove Funds from LND")
if [ "${runBehindTor}" == "on" ]; then if [ "${runBehindTor}" == "on" ]; then
OPTIONS+=(TOR "Monitor TOR Service") OPTIONS+=(TOR "Monitor TOR Service")
fi fi