mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
12 lines
No EOL
464 B
Bash
Executable file
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 |