MV Func db_check()

This commit is contained in:
2019-05-11 23:46:28 +02:00
parent 5d6f5ac760
commit 6d36742007
3 changed files with 16 additions and 9 deletions

View File

@ -21,3 +21,13 @@ function file_size() {
echo 0
fi
}
# db_check -> TRUE/FALSE
function db_check() {
db_query "SHOW GRANTS FOR CURRENT_USER();" > /dev/null 2> /dev/null
if [ $? == 0 ]; then
echo $TRUE
else
echo $FALSE
fi
}