check raspiblitz.conf exists

This commit is contained in:
rootzoll 2021-03-27 01:35:26 +01:00
parent c9bde3886a
commit 87e6a900b1

View file

@ -257,7 +257,7 @@ function pool() {
# aliases for lit # aliases for lit
# switch to the pool user for the Pool Service # switch to the pool user for the Pool Service
if [ $(grep -c "lit=on" < /mnt/hdd/raspiblitz.conf) -gt 0 ]; then if [ -f "/mnt/hdd/raspiblitz.conf" ] && [ $(grep -c "lit=on" < /mnt/hdd/raspiblitz.conf) -gt 0 ]; then
source /mnt/hdd/raspiblitz.conf source /mnt/hdd/raspiblitz.conf
alias lit-frcli="sudo -u lit frcli --rpcserver=localhost:8443 \ alias lit-frcli="sudo -u lit frcli --rpcserver=localhost:8443 \
--tlscertpath=/home/lit/.lit/tls.cert \ --tlscertpath=/home/lit/.lit/tls.cert \