98repairBlockchain: fix COPY option

This commit is contained in:
openoms
2021-12-13 01:13:11 +00:00
parent 4ba72ab270
commit 521020a453

View File

@@ -17,12 +17,13 @@ clear
if [ "${CHOICE}" = "COPY" ]; then if [ "${CHOICE}" = "COPY" ]; then
echo "Starting COPY ..." echo "Starting COPY ..."
sudo sed -i "s/^state=.*/state=recopy/g" /home/admin/raspiblitz.info sudo sed -i "s/^state=.*/state=recopy/g" /home/admin/raspiblitz.info
/home/admin/50copyHDD.sh /home/admin/config.scripts/blitz.copychain.sh target
sudo sed -i "s/^state=.*/state=na/g" /home/admin/raspiblitz.info sudo sed -i "s/^state=.*/state=na/g" /home/admin/raspiblitz.info
elif [ "${CHOICE}" = "RESYNC" ]; then elif [ "${CHOICE}" = "RESYNC" ]; then
echo "Starting RESYNC ..." echo "Starting RESYNC ..."
/home/admin/50syncHDD.sh #TODO #FIXME
# /home/admin/50syncHDD.sh
dialog --pause "OK. System will reboot to activate changes." 8 58 8 dialog --pause "OK. System will reboot to activate changes." 8 58 8
clear clear
echo "rebooting .. (please wait)" echo "rebooting .. (please wait)"