Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
deemru committed Dec 30, 2021
1 parent 1cbf13f commit ca809e1
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions updater.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
cd $(dirname $0)
unlink var/db/scams.txt
unlink var/db/weights.txt
unlink var/db/blockchain.sqlite3-wal.last
unlink var/db/blockchain.sqlite3-shm.last
mv var/db/blockchain.sqlite3-wal var/db/blockchain.sqlite3-wal.last
mv var/db/blockchain.sqlite3-shm var/db/blockchain.sqlite3-shm.last
cp var/db/blockchain.sqlite3-wal.last var/db/blockchain.sqlite3-wal
cp var/db/blockchain.sqlite3-shm.last var/db/blockchain.sqlite3-shm
while :; do echo '' && date "+%Y.%m.%d %H:%M:%S" && echo "-------------------"; php w8_updater.php; echo "-------------------"; date "+%Y.%m.%d %H:%M:%S"; sleep 17; done
while :; do
unlink var/db/blockchain.sqlite3-wal.last;
unlink var/db/blockchain.sqlite3-shm.last;
mv var/db/blockchain.sqlite3-wal var/db/blockchain.sqlite3-wal.last;
mv var/db/blockchain.sqlite3-shm var/db/blockchain.sqlite3-shm.last;
cp var/db/blockchain.sqlite3-wal.last var/db/blockchain.sqlite3-wal;
cp var/db/blockchain.sqlite3-shm.last var/db/blockchain.sqlite3-shm;
echo '' && date "+%Y.%m.%d %H:%M:%S" && echo "-------------------"; php w8_updater.php; echo "-------------------"; date "+%Y.%m.%d %H:%M:%S"; sleep 17; done

0 comments on commit ca809e1

Please sign in to comment.