https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10517

--- Comment #25 from Rudolf Byker <rudolfby...@gmail.com> ---
OK, if you really need to support older versions, let's do it cleanly. Here is
a way to check if the user exists:

EXISTS=$(mysql -uroot -p -s -e "select count(*) from mysql.user where user =
'asdf'" | tail -n 1)
if [[ $EXISTS -gt 0 ]]
then
  echo "Now delete the user."
fi

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to