HIRS/package/scripts/common/db_drop.sh
2023-05-03 16:55:10 +00:00

12 lines
281 B
Bash

#!/bin/bash
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