summaryrefslogtreecommitdiff
path: root/localserver
diff options
context:
space:
mode:
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