summaryrefslogtreecommitdiff
path: root/status.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-14 18:39:46 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-14 18:39:46 +0300
commit34a2f1977472a063c5b15c02ab1c83a6961efbcb (patch)
tree25d84f52827618d31f42fc89b7f190f6c683be26 /status.sh
parentabc5b7dd12cb6ee1796280af1d96bb70c57a901e (diff)
downloadall-34a2f1977472a063c5b15c02ab1c83a6961efbcb.tar.gz
all-34a2f1977472a063c5b15c02ab1c83a6961efbcb.tar.bz2
all-34a2f1977472a063c5b15c02ab1c83a6961efbcb.tar.xz
all-34a2f1977472a063c5b15c02ab1c83a6961efbcb.zip
Fix db check if tools task was not installed.
Diffstat (limited to 'status.sh')
-rwxr-xr-xstatus.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/status.sh b/status.sh
index ed7190d..7ebe604 100755
--- a/status.sh
+++ b/status.sh
@@ -8,6 +8,9 @@ function reportdb {
}
function dbinfo {
+ if [ ! -d "tools" ]; then
+ return
+ fi
export VER=$(cat tools/localserver/versions/sqlver 2>/dev/null)
if [[ -n "${VER}" ]]; then