From 45d3922284e6e59e39d226c1230cbe63c1cc444e Mon Sep 17 00:00:00 2001 From: iadgovuser29 <33426478+iadgovuser29@users.noreply.github.com> Date: Tue, 5 Nov 2024 08:19:52 -0500 Subject: [PATCH] Ensure hirs certs directory can be read by the mysql group --- package/linux/db/db_create.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/linux/db/db_create.sh b/package/linux/db/db_create.sh index dd8e61d59..4767d3ddc 100755 --- a/package/linux/db/db_create.sh +++ b/package/linux/db/db_create.sh @@ -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" @@ -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