-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·34 lines (30 loc) · 944 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
read -p "Creating Postgres schema (y/n)? " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
docker-compose run demux yarn _migrate
fi
read -p "Initializing Chain data (y/n)? " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
docker-compose run eosiodev /opt/application/scripts/0000_init-chain.sh
fi
read -p "Load Elements (y/n)? " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
docker-compose run eosiodev /opt/application/scripts/0010_load-elements.sh
fi
read -p "Load pet types (y/n)? " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
docker-compose run eosiodev /opt/application/scripts/0020_load-pet-types.sh
fi
read -p "Load some monsters (y/n)? " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
docker-compose run eosiodev /opt/application/scripts/0030_load-data.sh
fi