summaryrefslogtreecommitdiff
path: root/.tools/jobs/initdb.sh
blob: d6c2480fbeae7bff24012ed20fafc2cb25448e88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

source ./.tools/scripts/init.sh

cd ../server-data

export host=$1
cd sql-files

export CMD="mysql --force -u root -proot --host=${host}"
check_error $?
echo $CMD <./initremote.sql
$CMD <./initremote.sql
check_error $?

export CMD="mysql -u evol -pevol --host=${host} evol"
echo Creating tables...
echo $CMD <main.sql
$CMD <main.sql
check_error $?
echo $CMD <logs.sql
$CMD <logs.sql
check_error $?