mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-03 09:28:22 +02:00
improve copy blockchain
This commit is contained in:
parent
dc670a592a
commit
ca77bbacce
@ -38,7 +38,7 @@ if [ ${existsHDD} -gt 0 ]; then
|
||||
echo "OK - HDD is listed in /etc/fstab"
|
||||
echo ""
|
||||
echo "*** Mount HDD ***"
|
||||
sudo mkdir /mnt/hdd
|
||||
sudo mkdir /mnt/hdd 2>/dev/null
|
||||
sudo mount -a
|
||||
mountOK=$(df | grep -c /mnt/hdd)
|
||||
if [ ${mountOK} -eq 1 ]; then
|
||||
|
@ -8,6 +8,7 @@ localip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1
|
||||
|
||||
# create bitcoin base directory and link with bitcoin user
|
||||
sudo rm -rf /mnt/hdd/bitcoin 2>/dev/null
|
||||
sudo rm -rf /home/bitcoin/.bitcoin 2>/dev/null
|
||||
sudo mkdir /mnt/hdd/bitcoin
|
||||
sudo chown bitcoin:bitcoin /mnt/hdd/bitcoin
|
||||
sudo ln -s /mnt/hdd/bitcoin /home/bitcoin/.bitcoin
|
||||
|
Loading…
x
Reference in New Issue
Block a user