I have been trying to integrate the below stated command into a salt state:
mysql_install_db --user=mysql --basedir=/usr/ --ldata=/data/mysql/
but I want them to integrate only when either /data/mysql is empty or mysql contains no databases.
Can anyone help me with the above query please?
Thanks.