mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-20 18:22:01 +01:00
link also lnd folders for bitcoin user
This commit is contained in:
parent
83d78389ae
commit
9dab595869
@ -948,6 +948,11 @@ if [ "$1" = "link" ]; then
|
|||||||
sudo rm /mnt/storage/litecoin/litecoin 2>/dev/null
|
sudo rm /mnt/storage/litecoin/litecoin 2>/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "# linking lnd for user bitcoin"
|
||||||
|
sudo rm /home/bitcoin/.lnd 2>/dev/null
|
||||||
|
sudo ln -s /mnt/hdd/lnd /home/bitcoin/.lnd
|
||||||
|
sudo chown -R bitcoin:bitcoin /home/bitcoin/.lnd
|
||||||
|
|
||||||
echo "# - linking blockchain for user bitcoin"
|
echo "# - linking blockchain for user bitcoin"
|
||||||
sudo ln -s /mnt/storage/bitcoin /home/bitcoin/.bitcoin
|
sudo ln -s /mnt/storage/bitcoin /home/bitcoin/.bitcoin
|
||||||
sudo chown -R bitcoin:bitcoin /home/bitcoin/.bitcoin
|
sudo chown -R bitcoin:bitcoin /home/bitcoin/.bitcoin
|
||||||
@ -987,6 +992,11 @@ if [ "$1" = "link" ]; then
|
|||||||
sudo ln -s /mnt/hdd/litecoin /home/bitcoin/.litecoin
|
sudo ln -s /mnt/hdd/litecoin /home/bitcoin/.litecoin
|
||||||
sudo chown -R bitcoin:bitcoin /home/bitcoin/.litecoin
|
sudo chown -R bitcoin:bitcoin /home/bitcoin/.litecoin
|
||||||
|
|
||||||
|
echo "# linking lnd for user bitcoin"
|
||||||
|
sudo rm /home/bitcoin/.lnd 2>/dev/null
|
||||||
|
sudo ln -s /mnt/hdd/lnd /home/bitcoin/.lnd
|
||||||
|
sudo chown -R bitcoin:bitcoin /home/bitcoin/.lnd
|
||||||
|
|
||||||
echo "# creating default storage folders"
|
echo "# creating default storage folders"
|
||||||
sudo mkdir -p /mnt/hdd/app-storage
|
sudo mkdir -p /mnt/hdd/app-storage
|
||||||
sudo chown -R bitcoin:bitcoin /mnt/hdd/app-storage
|
sudo chown -R bitcoin:bitcoin /mnt/hdd/app-storage
|
||||||
@ -994,6 +1004,11 @@ if [ "$1" = "link" ]; then
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# fix ownership of linked files
|
||||||
|
sudo chown -R bitcoin:bitcoin /mnt/hdd/bitcoin 2>/dev/null
|
||||||
|
sudo chown -R bitcoin:bitcoin /mnt/hdd/litecoin 2>/dev/null
|
||||||
|
sudo chown -R bitcoin:bitcoin /mnt/hdd/lnd 2>/dev/null
|
||||||
|
|
||||||
echo "# OK - all symbolic links build"
|
echo "# OK - all symbolic links build"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user