go-ethereum/shyft-cli/shyftFullReset.sh

12 lines
No EOL
464 B
Bash
Executable file

#!/bin/bash
if ! psql -lqt | cut -d \| -f 1 | grep -qw shyftdb; then
echo Creating postgres db...
sh ./shyft-cli/postgres_setup/initdb.sh &&
echo Successfully created postgres db!
fi
sh ./shyft-cli/postgres_setup/drop_tables.sh && # Drop tables
sh ./shyft-cli/postgres_setup/init_tables.sh && # Init tables
sh ./shyft-cli/resetShyftGeth.sh && # Reset geth data
sh ./shyft-cli/initShyftGeth.sh # Init Shyft Geth