mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-03-29 11:11:47 +01:00
#4492 fix electrs recover on min-build
This commit is contained in:
parent
5d2b4c84fc
commit
ff23ede250
@ -314,16 +314,6 @@ fi
|
||||
if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||
echo "# ACTIVATING ELECTRS"
|
||||
|
||||
# check and create storage dir
|
||||
if ! sudo ls /mnt/hdd/app-storage/electrs 2>/dev/null; then
|
||||
sudo mkdir /mnt/hdd/app-storage/electrs
|
||||
echo
|
||||
echo "# The electrs database will be built in /mnt/hdd/app-storage/electrs/db. Takes ~18 hours and ~50Gb diskspace"
|
||||
echo
|
||||
fi
|
||||
# always fix user id
|
||||
sudo chown -R electrs:electrs /mnt/hdd/app-storage/electrs
|
||||
|
||||
isInstalled=$(sudo ls /etc/systemd/system/electrs.service 2>/dev/null | grep -c 'electrs.service')
|
||||
if [ ${isInstalled} -eq 0 ]; then
|
||||
|
||||
@ -342,6 +332,16 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# check and create storage dir
|
||||
if ! sudo ls /mnt/hdd/app-storage/electrs 2>/dev/null; then
|
||||
sudo mkdir /mnt/hdd/app-storage/electrs
|
||||
echo
|
||||
echo "# The electrs database will be built in /mnt/hdd/app-storage/electrs/db. Takes ~18 hours and ~50Gb diskspace"
|
||||
echo
|
||||
fi
|
||||
# always fix user id
|
||||
sudo chown -R electrs:electrs /mnt/hdd/app-storage/electrs
|
||||
|
||||
echo
|
||||
echo "# Getting RPC credentials from the bitcoin.conf"
|
||||
# read PASSWORD_B
|
||||
|
Loading…
x
Reference in New Issue
Block a user