From e67838158e153297ef7b72223a5f3c8cd8ba6eb5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 5 Sep 2015 21:07:23 +0300 Subject: localserver: fix updatedb.sh script --- localserver/updatedb.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'localserver') diff --git a/localserver/updatedb.sh b/localserver/updatedb.sh index 58046a4..e65d294 100755 --- a/localserver/updatedb.sh +++ b/localserver/updatedb.sh @@ -1,16 +1,17 @@ #!/bin/bash export VER=$(cat versions/sqlver 2>/dev/null) -export SQLDIR="../../server-data/sql-files/" +export SQLDIR="../../server-data/sql-files/upgrades" export CMD="mysql -u evol -pevol evol" function run { echo "Running $1" - $CMD <$1 + $CMD <${SQLDIR}/$1 } if [[ -z "${VER}" ]]; then export VER="1" + mkdir versions fi if [ "${VER}" -lt "2" ]; then -- cgit v1.2.3-70-g09d2