Browse Source

setting state again

v1.3
Christian Rotzoll 6 years ago
parent
commit
1e72371b2b
  1. 1
      home.admin/50syncHDD.sh
  2. 6
      home.admin/98repairBlockchain.sh

1
home.admin/50syncHDD.sh

@ -65,6 +65,7 @@ sudo /home/admin/XXcleanHDD.sh -blockchain -force
# set so that 10raspiblitz.sh has a flag to see that resync is running
sudo touch /mnt/hdd/${network}/blocks/.selfsync
sudo sed -i "s/^state=.*/state=sync/g" /home/admin/raspiblitz.info
echo "OK - sync is activated"

6
home.admin/98repairBlockchain.sh

@ -19,18 +19,18 @@ if [ "${CHOICE}" = "TORRENT" ]; then
echo "Starting TORRENT ..."
sudo sed -i "s/^state=.*/state=retorrent/g" /home/admin/raspiblitz.info
/home/admin/50torrentHDD.sh
sudo sed -i "s/^state=.*/state=repair/g" /home/admin/raspiblitz.info
sudo sed -i "s/^state=.*/state=na/g" /home/admin/raspiblitz.info
elif [ "${CHOICE}" = "COPY" ]; then
echo "Starting COPY ..."
sudo sed -i "s/^state=.*/state=recopy/g" /home/admin/raspiblitz.info
/home/admin/50copyHDD.sh
sudo sed -i "s/^state=.*/state=repair/g" /home/admin/raspiblitz.info
sudo sed -i "s/^state=.*/state=na/g" /home/admin/raspiblitz.info
elif [ "${CHOICE}" = "RESYNC" ]; then
echo "Starting RESYNC ..."
/home/admin/50syncHDD.sh
/home/
/home/admin/00raspiblitz.sh
elif [ "${CHOICE}" = "REINDEX" ]; then
echo "Starting REINDEX ..."

Loading…
Cancel
Save