Skip to content

Commit

Permalink
Ensure hirs certs directory can be read by the mysql group
Browse files Browse the repository at this point in the history
  • Loading branch information
iadgovuser29 committed Nov 5, 2024
1 parent 775ab4a commit 45d3922
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package/linux/db/db_create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ ECC_PATH=ecc_512_sha384_certs
SCRIPT_DIR=$( dirname -- "$( readlink -f -- "$0"; )"; )
SPRING_PROP_FILE="/etc/hirs/aca/application.properties"
ACA_PROP_FILE="/etc/hirs/aca/aca.properties"
ACA_CERTS_DIR="/etc/hirs/certificates"
DB_ADMIN_PWD=""
# Db Configuration fileis, use RHELpaths as default
DB_SRV_CONF="/etc/my.cnf.d/mariadb-server.cnf"
Expand Down Expand Up @@ -236,6 +237,8 @@ fi
# HIRS ACA Mysqld processing ...
check_systemd -p
check_mariadb_install
# Ensure the certificates directory is readable by mysql
find $ACA_CERTS_DIR -type d -exec chown :mysql {} +
start_mysqlsd
check_mysql
check_mysql_root_pwd
Expand Down

0 comments on commit 45d3922

Please sign in to comment.