mirror of
https://github.com/bitnami/containers.git
synced 2026-03-16 14:57:44 +08:00
10.4.24-debian-10-r72 release
This commit is contained in:
committed by
Bitnami Containers
parent
077b959cb2
commit
ea70fba9d9
@@ -171,8 +171,6 @@ plugin_dir=${DB_BASE_DIR}/lib/plugin
|
||||
port=${DB_DEFAULT_PORT_NUMBER}
|
||||
socket=${DB_SOCKET_FILE}
|
||||
pid_file=${DB_PID_FILE}
|
||||
|
||||
!include ${DB_CONF_DIR}/bitnami/my_custom.cnf
|
||||
EOF
|
||||
}
|
||||
|
||||
@@ -272,6 +270,9 @@ mysql_initialize() {
|
||||
if is_file_writable "${DB_CONF_DIR}/bitnami/my_custom.cnf"; then
|
||||
info "Injecting custom configuration 'my_custom.cnf'"
|
||||
cat "${DB_CONF_DIR}/my_custom.cnf" > "${DB_CONF_DIR}/bitnami/my_custom.cnf"
|
||||
if ! grep --silent "!include ${DB_CONF_DIR}/bitnami/my_custom.cnf" "${DB_CONF_FILE}"; then
|
||||
echo "!include ${DB_CONF_DIR}/bitnami/my_custom.cnf" >> "${DB_CONF_FILE}"
|
||||
fi
|
||||
else
|
||||
warn "Could not inject custom configuration for the ${DB_FLAVOR} configuration file '$DB_CONF_DIR/bitnami/my_custom.cnf' because it is not writable."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user