Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure hirs certs directory can be read by the mysql group #868

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading