mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-21 13:57:56 +00:00
12 lines
273 B
Bash
12 lines
273 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/db/db_drop.sql
|
|
else
|
|
mysql -u "root" -p$HIRS_MYSQL_ROOT_PWD < /opt/hirs/scripts/db/db_drop.sq1
|
|
fi
|
|
fi
|