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

@ -209,13 +209,4 @@ function db_query() {
echo $@ | mysql $args
}
function db_check() {
db_query "SHOW GRANTS FOR CURRENT_USER();" > /dev/null 2> /dev/null
if [ $? == 0 ]; then
echo $TRUE
else
echo $FALSE
fi
}
main #aufruf der main function (eig. programmstart)