mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-26 11:37:19 +02:00
recover now also BTCPayServer
This commit is contained in:
@@ -284,19 +284,11 @@ else
|
|||||||
echo "Provisioning ElectRS - keep default" >> ${logFile}
|
echo "Provisioning ElectRS - keep default" >> ${logFile}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# BTCPAYSERVER - not restored due to need for domain name and port forwarding
|
# BTCPAYSERVER
|
||||||
if [ "${BTCPayServer}" = "on" ]; then
|
if [ "${BTCPayServer}" = "on" ]; then
|
||||||
# --> TODO: BTCPay Server install does not run clean during provision
|
echo "Provisioning BTCPAYSERVER on TOR - run config script" >> ${logFile}
|
||||||
# --> needs install when everything is already 'running'
|
sudo sed -i "s/^message=.*/message='Setup BTCPay (takes time)'/g" ${infoFile}
|
||||||
#if [ "${runBehindTor}" = "on" ] && [ "${BTCPayDomain}" = "localhost" ]; then
|
sudo -u admin /home/admin/config.scripts/bonus.btcpayserver.sh on >> ${logFile} 2>&1
|
||||||
# echo "Provisioning BTCPAYSERVER on TOR - run config script" >> ${logFile}
|
|
||||||
# sudo sed -i "s/^message=.*/message='Setup BTCPay (takes time)'/g" ${infoFile}
|
|
||||||
# sudo -u admin /home/admin/config.scripts/bonus.btcpayserver.sh on tor >> ${logFile} 2>&1
|
|
||||||
#else
|
|
||||||
# provisioning non-TOR BTCPayServer is not supported yet - needs manual reinstall
|
|
||||||
echo "Setting BTCPayServer to be off - will need to be reinstalled from the menu again" >> ${logFile}
|
|
||||||
sudo sed -i "s/^BTCPayServer=.*/BTCPayServer=off/g" /mnt/hdd/raspiblitz.conf
|
|
||||||
#fi
|
|
||||||
else
|
else
|
||||||
echo "Provisioning BTCPayServer - keep default" >> ${logFile}
|
echo "Provisioning BTCPayServer - keep default" >> ${logFile}
|
||||||
fi
|
fi
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# command info
|
# command info
|
||||||
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
|
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
|
||||||
echo "config script to switch BTCPay Server on or off"
|
echo "config script to switch BTCPay Server on or off"
|
||||||
echo "bonus.btcpayserver.sh [on|off|menu|write-tls-macaroon] [ip|tor]"
|
echo "bonus.btcpayserver.sh [on|off|menu|write-tls-macaroon]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -170,23 +170,6 @@ fi
|
|||||||
if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||||
echo "*** INSTALL BTCPAYSERVER ***"
|
echo "*** INSTALL BTCPAYSERVER ***"
|
||||||
|
|
||||||
# --> just serving directly thru TOR for now
|
|
||||||
# setting up nginx and the SSL certificate
|
|
||||||
#/home/admin/config.scripts/bonus.btcpaysetdomain.sh
|
|
||||||
#errorOnInstall=$?
|
|
||||||
#if [ ${errorOnInstall} -eq 1 ]; then
|
|
||||||
# echo "exiting as user cancelled BTCPayServer installation"
|
|
||||||
# exit 1
|
|
||||||
#fi
|
|
||||||
|
|
||||||
#if [ "$2" == "tor" ]; then
|
|
||||||
# sudo sed -i "s/^BTCPayDomain=.*/BTCPayDomain='localhost'/g" /mnt/hdd/raspiblitz.conf
|
|
||||||
# /home/admin/config.scripts/internet.hiddenservice.sh btcpay 80 23000
|
|
||||||
#else
|
|
||||||
# echo "# FAIL - at the moment only BTCPay Server over TOR is supported"
|
|
||||||
# exit 1
|
|
||||||
#fi
|
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# NGINX
|
# NGINX
|
||||||
##################
|
##################
|
||||||
|
Reference in New Issue
Block a user