adjusted to mysql password settings [no ci]

This commit is contained in:
iadgovuser26 2023-04-27 21:07:41 +00:00 committed by iadgovuser26 iadgovuser26@empire.eclipse.ncsc.mil
parent 665e90b176
commit 5330318439

View File

@ -23,6 +23,7 @@ if [ -z $HIRS_DB_PWD ]; then
fi
# Set root password if not set
if mysql -u root -e 'quit' &> /dev/null; then
echo "Setting root password"
mysqladmin -u root --silent password $HIRS_MYSQL_ROOT_PWD || true > /dev/null 2>&1