summaryrefslogtreecommitdiff
path: root/status.sh
diff options
context:
space:
mode:
Diffstat (limited to 'status.sh')
-rwxr-xr-xstatus.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/status.sh b/status.sh
index 5ee5bad..ed7190d 100755
--- a/status.sh
+++ b/status.sh
@@ -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 {