mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 13:24:25 -07:00
Merge pull request #779 from dpeca/patch-7
Fix for: /usr/local/vesta/func/db.sh: line 390: [: : integer expressi…
This commit is contained in:
commit
ec9518f663
1 changed files with 1 additions and 1 deletions
|
@ -387,7 +387,7 @@ get_mysql_disk_usage() {
|
|||
query="SELECT SUM( data_length + index_length ) / 1024 / 1024 \"Size\"
|
||||
FROM information_schema.TABLES WHERE table_schema='$database'"
|
||||
usage=$(mysql_query "$query" |tail -n1)
|
||||
if [ "$usage" == 'NULL' ] || [ "${usage:0:1}" -eq '0' ]; then
|
||||
if [ "$usage" == '' ] || [ "$usage" == 'NULL' ] || [ "${usage:0:1}" -eq '0' ]; then
|
||||
usage=1
|
||||
fi
|
||||
export LC_ALL=C
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue