#214 deactivate BTCPay provisioning for now

This commit is contained in:
rootzoll 2020-01-28 19:56:35 +01:00
parent 93558fe633
commit 01b7d558a8
2 changed files with 9 additions and 7 deletions

View File

@ -255,15 +255,17 @@ fi
# BTCPAYSERVER - not restored due to need for domain name and port forwarding
if [ "${BTCPayServer}" = "on" ]; then
if [ "${runBehindTor}" = "on" ] && [ "${BTCPayDomain}" = "localhost" ]; then
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
# --> TODO: BTCPay Server install does not run clean during provision
# --> needs install when everything is already 'running'
#if [ "${runBehindTor}" = "on" ] && [ "${BTCPayDomain}" = "localhost" ]; then
# 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
#fi
else
echo "Provisioning BTCPayServer - keep default" >> ${logFile}
fi

View File

@ -66,7 +66,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; 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