diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-05 21:07:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-05 21:07:23 +0300 |
commit | e67838158e153297ef7b72223a5f3c8cd8ba6eb5 (patch) | |
tree | 5e74c1990f621501739d7072a8b8d3e4d8acad2e | |
parent | a36781e372fc3269b651105fa690b42f290d31fb (diff) | |
download | evol-tools-e67838158e153297ef7b72223a5f3c8cd8ba6eb5.tar.gz evol-tools-e67838158e153297ef7b72223a5f3c8cd8ba6eb5.tar.bz2 evol-tools-e67838158e153297ef7b72223a5f3c8cd8ba6eb5.tar.xz evol-tools-e67838158e153297ef7b72223a5f3c8cd8ba6eb5.zip |
localserver: fix updatedb.sh script
-rwxr-xr-x | localserver/updatedb.sh | 5 |
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 |