HIRS/package/scripts/db/db_drop.sh

12 lines
273 B
Bash
Raw Normal View History

#!/bin/bash
2018-09-06 13:47:33 +00: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/db/db_drop.sql
2023-05-03 16:54:35 +00:00
else
mysql -u "root" -p$HIRS_MYSQL_ROOT_PWD < /opt/hirs/scripts/db/db_drop.sq1
2023-05-03 16:54:35 +00:00
fi
fi