summaryrefslogtreecommitdiff
path: root/localserver
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-05 21:07:23 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-05 21:07:23 +0300
commite67838158e153297ef7b72223a5f3c8cd8ba6eb5 (patch)
tree5e74c1990f621501739d7072a8b8d3e4d8acad2e /localserver
parenta36781e372fc3269b651105fa690b42f290d31fb (diff)
downloadevol-tools-e67838158e153297ef7b72223a5f3c8cd8ba6eb5.tar.gz
evol-tools-e67838158e153297ef7b72223a5f3c8cd8ba6eb5.tar.bz2
evol-tools-e67838158e153297ef7b72223a5f3c8cd8ba6eb5.tar.xz
evol-tools-e67838158e153297ef7b72223a5f3c8cd8ba6eb5.zip
localserver: fix updatedb.sh script
Diffstat (limited to 'localserver')
-rwxr-xr-xlocalserver/updatedb.sh5
1 files changed, 3 insertions, 2 deletions
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