HIRS/package/scripts/common/db_drop.sh

12 lines
281 B
Bash
Raw Normal View History

#!/bin/bash
2018-09-06 09:47:33 -04:00
2023-05-03 16:54:35 +00:00
echo "dropping hirs database"
if pgrep mysqld >/dev/null 2>&1; then
if [ -z ${HIRS_MYSQL_ROOT_PWD} ]; then
mysql -u "root" < /opt/hirs/scripts/common/db_drop.sql
else
mysql -u "root" -p$HIRS_MYSQL_ROOT_PWD < /opt/hirs/scripts/common/db_drop.sq1
fi
fi