From ce129fdf6c94f0b8a2ab7a651d86fe9389172201 Mon Sep 17 00:00:00 2001 From: "iadgovuser26 iadgovuser26@empire.eclipse.ncsc.mil" Date: Wed, 24 Apr 2024 16:18:31 -0400 Subject: [PATCH] fixed mariadb permission on Rocky 9 --- package/linux/db/db_create.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/linux/db/db_create.sh b/package/linux/db/db_create.sh index aa3324e1..dd8e61d5 100755 --- a/package/linux/db/db_create.sh +++ b/package/linux/db/db_create.sh @@ -114,10 +114,10 @@ set_mysql_server_tls () { # The following arent avialble in Mariadb 10.3 #echo "tls_version=TLSv1.2,TLSv1.3" >> "$DB_SRV_CONF" #echo "require_secure_transport=ON" >> "$DB_SRV_CONF" - - + # Make sure mysql can access them chown mysql:mysql $SSL_DB_SRV_CHAIN $SSL_DB_SRV_CERT $SSL_DB_SRV_KEY + chmod 644 $DB_SRV_CONF $DB_CLIENT_CONF # Make selinux contexts for config files, if selinux is enabled if [[ $ID = "rhel" ]] || [[ $ID = "rocky" ]] ||[[ $ID = "fedora" ]]; then command -v selinuxenabled > /dev/null