mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
improve copy blockchain
This commit is contained in:
parent
dc670a592a
commit
ca77bbacce
2 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue