I am trying to run this command in a salt state:
mysql_install_db --user=mysql --basedir=/usr/ --ldata=/data/mysql/
But I want this to run only if the /data/mysql directory is empty i.e. there are no databases in it. Is there any conditional I can use here?