diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-14 18:36:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-14 18:36:31 +0300 |
commit | abc5b7dd12cb6ee1796280af1d96bb70c57a901e (patch) | |
tree | e1ce794058cd35f56c1517ded7fb195e5dd5ca4d | |
parent | ef9a68cc014c8a32ec7dd466a69978d77c45add3 (diff) | |
download | evol-all-abc5b7dd12cb6ee1796280af1d96bb70c57a901e.tar.gz evol-all-abc5b7dd12cb6ee1796280af1d96bb70c57a901e.tar.bz2 evol-all-abc5b7dd12cb6ee1796280af1d96bb70c57a901e.tar.xz evol-all-abc5b7dd12cb6ee1796280af1d96bb70c57a901e.zip |
Fix checking db version.
-rwxr-xr-x | status.sh | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -2,15 +2,21 @@ export LANG=C +function reportdb { + echo "database" + echo -e " \e[1;31mPlease upgrade database. See instuctions in http://wiki.evolonline.org/guidelines/updating#update_database\e[0m" +} + function dbinfo { export VER=$(cat tools/localserver/versions/sqlver 2>/dev/null) if [[ -n "${VER}" ]]; then if [ "${VER}" -lt "2" ]; then - echo "database" - echo -e "\e[1;31mPlease upgrade database. See instuctions in http://wiki.evolonline.org/guidelines/updating#update_database\e[0m" + reportdb fi + return fi + reportdb } function status { |