HIRS/package/scripts/common/get_db_service.sh

8 lines
174 B
Bash
Raw Normal View History

2018-09-06 13:47:33 +00:00
if [[ $(rpm -qa mariadb*) ]]; then
echo "mariadb"
elif [[ $(rpm -qa mysql-server*) ]]; then
echo "mysqld"
else
echo "Could not determine installed database"
exit 1
fi