Btw, maybe an even better solution for that "if":
if postconf -h alias_database | grep -q '^mysql:' ; then
Btw, maybe an even better solution for that "if":
if postconf -h alias_database | grep -q '^mysql:' ; then