mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-03 18:09:03 +02:00
BTCPay Server add install info
This commit is contained in:
@@ -293,6 +293,8 @@ if [ "${BTCPayServer}" = "on" ]; then
|
|||||||
|
|
||||||
# because BTCPAY server freezes during recovery .. it will get installed after reboot
|
# because BTCPAY server freezes during recovery .. it will get installed after reboot
|
||||||
echo "sudo -u admin /home/admin/config.scripts/bonus.btcpayserver.sh on" >> /home/admin/setup.sh
|
echo "sudo -u admin /home/admin/config.scripts/bonus.btcpayserver.sh on" >> /home/admin/setup.sh
|
||||||
|
sudo chmod +x /home/admin/setup.sh >> ${logFile}
|
||||||
|
sudo ls -la /home/admin/setup.sh >> ${logFile}
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "Provisioning BTCPayServer - keep default" >> ${logFile}
|
echo "Provisioning BTCPayServer - keep default" >> ${logFile}
|
||||||
|
@@ -142,7 +142,9 @@ if [ ${afterSetupScriptExists} -eq 1 ]; then
|
|||||||
# echo out script to journal logs
|
# echo out script to journal logs
|
||||||
sudo cat /home/admin/setup.sh
|
sudo cat /home/admin/setup.sh
|
||||||
# execute the after boot script
|
# execute the after boot script
|
||||||
sudo /home/admin/setup.sh
|
echo "Logs in stored to: /home/admin/raspiblitz.recover.log"
|
||||||
|
echo "\n***** RUNNING AFTER BOOT SCRIPT ******** " >> /home/admin/raspiblitz.recover.log
|
||||||
|
sudo /home/admin/setup.sh >> /home/admin/raspiblitz.recover.log
|
||||||
# delete the after boot script
|
# delete the after boot script
|
||||||
sudo rm /home/admin/setup.sh
|
sudo rm /home/admin/setup.sh
|
||||||
# reboot again
|
# reboot again
|
||||||
|
@@ -14,8 +14,12 @@ source /mnt/hdd/raspiblitz.conf
|
|||||||
source /home/admin/raspiblitz.info
|
source /home/admin/raspiblitz.info
|
||||||
|
|
||||||
if [ "$1" = "status" ]; then
|
if [ "$1" = "status" ]; then
|
||||||
|
|
||||||
if [ "${BTCPayServer}" = "on" ]; then
|
if [ "${BTCPayServer}" = "on" ]; then
|
||||||
echo "installed=1"
|
|
||||||
|
echo "switchedon=1"
|
||||||
|
isInstalled=$(sudo ls /etc/systemd/system/btcpayserver.service 2>/dev/null | grep -c 'btcpayserver.service')
|
||||||
|
echo "installed=${isInstalled}"
|
||||||
|
|
||||||
localIP=$(ip addr | grep 'state UP' -A2 | egrep -v 'docker0' | grep 'eth0\|wlan0' | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
|
localIP=$(ip addr | grep 'state UP' -A2 | egrep -v 'docker0' | grep 'eth0\|wlan0' | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
|
||||||
echo "localIP='${localIP}'"
|
echo "localIP='${localIP}'"
|
||||||
@@ -61,6 +65,7 @@ if [ "$1" = "status" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
echo "switchedon=0"
|
||||||
echo "installed=0"
|
echo "installed=0"
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
@@ -73,6 +78,17 @@ if [ "$1" = "menu" ]; then
|
|||||||
echo "# collecting status info ... (please wait)"
|
echo "# collecting status info ... (please wait)"
|
||||||
source <(sudo /home/admin/config.scripts/bonus.btcpayserver.sh status)
|
source <(sudo /home/admin/config.scripts/bonus.btcpayserver.sh status)
|
||||||
|
|
||||||
|
if [ ${switchedon} -eq 0 ]; then
|
||||||
|
whiptail --title " BTCPay Server " --msgbox "BTCPay Server is not activated." 7 36
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ${installed} -eq 0 ]; then
|
||||||
|
whiptail --title " BTCPay Server " --msgbox "BTCPay Server needs to be re-installed.\nPress OK to start process." 8 45
|
||||||
|
/home/admin/config.scripts/bonus.btcpayserver.sh on
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
text="Local Webrowser: https://${localIP}:${httpsPort}"
|
text="Local Webrowser: https://${localIP}:${httpsPort}"
|
||||||
|
|
||||||
if [ ${#publicDomain} -gt 0 ]; then
|
if [ ${#publicDomain} -gt 0 ]; then
|
||||||
|
Reference in New Issue
Block a user