Format progress

This commit is contained in:
Michele Marcucci 2024-10-17 16:31:04 +02:00
parent 6f6a50e5f8
commit f5773f39a1
3 changed files with 12 additions and 7 deletions

View File

@ -1,9 +1,3 @@
#!/bin/bash
if [ -f /tmp/format_node_disk_c_done ]; then
rm /tmp/format_node_disk_c_done
fi
screen -dmS disk /opt/apolloapi/backend/format_node_disk_c
sleep 75

View File

@ -31,3 +31,8 @@ systemctl start swap
echo "100" > /tmp/format_node_disk_c_done
sleep 5
if [ -f /tmp/format_node_disk_c_done ]; then
rm /tmp/format_node_disk_c_done
fi

View File

@ -26,4 +26,10 @@ echo "mounting back disk"
# Recreate Bitcoin directory
echo "recreating dir"
echo "100" > /tmp/format_node_disk_c_done
echo "100" > /tmp/format_node_disk_c_done
sleep 5
if [ -f /tmp/format_node_disk_c_done ]; then
rm /tmp/format_node_disk_c_done
fi