mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 14:51:03 +01:00
copystation small fixes
This commit is contained in:
parent
82e0664f5f
commit
5696f3eb4b
1 changed files with 8 additions and 4 deletions
|
@ -25,7 +25,13 @@ nointeraction=1
|
||||||
|
|
||||||
# override values if XXcopyStation.conf files exists
|
# override values if XXcopyStation.conf files exists
|
||||||
# use when you run this outside RaspiBlitz
|
# use when you run this outside RaspiBlitz
|
||||||
|
# - clean Ubuntu install
|
||||||
|
# - install bitcoind as systemd service
|
||||||
|
# - disable automount: https://askubuntu.com/questions/89244/how-to-disable-automount-in-nautiluss-preferences#102601
|
||||||
|
# - clone the github to get script (or download)
|
||||||
|
# - set your pathes bitcoin/template in conf file
|
||||||
source ./XXcopyStation.conf 2>/dev/null
|
source ./XXcopyStation.conf 2>/dev/null
|
||||||
|
# -- start script with parameter "-foreground"
|
||||||
|
|
||||||
####### SCRIPT #############
|
####### SCRIPT #############
|
||||||
|
|
||||||
|
@ -155,7 +161,7 @@ do
|
||||||
|
|
||||||
rsync -a --info=progress2 ${pathBitcoinBlockchain}/chainstate ${pathBitcoinBlockchain}/indexes ${pathBitcoinBlockchain}/blocks ${pathBitcoinBlockchain}/testnet3 ${pathTemplateHDD}/bitcoin
|
rsync -a --info=progress2 ${pathBitcoinBlockchain}/chainstate ${pathBitcoinBlockchain}/indexes ${pathBitcoinBlockchain}/blocks ${pathBitcoinBlockchain}/testnet3 ${pathTemplateHDD}/bitcoin
|
||||||
|
|
||||||
if [ ! -d "${pathLitecoinBlockchain}" ]; then
|
if [ -d "${pathLitecoinBlockchain}" ]; then
|
||||||
|
|
||||||
# sync litecoin
|
# sync litecoin
|
||||||
echo "Syncing Litecoin ..."
|
echo "Syncing Litecoin ..."
|
||||||
|
@ -305,9 +311,7 @@ OK NO FORMAT - Please remove decive now.
|
||||||
echo "To stop copystation script: CTRL+c"
|
echo "To stop copystation script: CTRL+c"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
if [ "${nointeraction}" == "1" ]; then
|
sudo sed -i "s/^message=.*/message='Ready & Synced HDDs: ${synced}'/g" /home/admin/raspiblitz.info 2>/dev/null
|
||||||
sudo sed -i "s/^message=.*/message='Ready & Synced HDDs: ${synced}'/g" /home/admin/raspiblitz.info 2>/dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
sleep 25
|
sleep 25
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue