mirror of
https://github.com/dockersrc/almalinux
synced 2024-11-24 11:23:05 -05:00
🗃️ Committing everything that changed 🗃️
rootfs/usr/local/etc/docker/functions/entrypoint.sh
This commit is contained in:
parent
7ba15421cc
commit
0ce1a1173c
@ -811,6 +811,18 @@ __initialize_database() {
|
|||||||
__find_replace "REPLACE_DATABASE_ROOT_PASS" "$db_admin_pass" "$dir"
|
__find_replace "REPLACE_DATABASE_ROOT_PASS" "$db_admin_pass" "$dir"
|
||||||
__find_replace "REPLACE_DATABASE_NAME" "$DATABASE_NAME" "$dir"
|
__find_replace "REPLACE_DATABASE_NAME" "$DATABASE_NAME" "$dir"
|
||||||
__find_replace "REPLACE_DATABASE_DIR" "$DATABASE_DIR" "$dir"
|
__find_replace "REPLACE_DATABASE_DIR" "$DATABASE_DIR" "$dir"
|
||||||
|
if echo "$dir" | grep -q '^/etc'; then
|
||||||
|
__find_replace "REPLACE_USER_NAME" "$db_normal_user" "/etc"
|
||||||
|
__find_replace "REPLACE_USER_PASS" "$db_normal_pass" "/etc"
|
||||||
|
__find_replace "REPLACE_DATABASE_USER" "$db_normal_user" "/etc"
|
||||||
|
__find_replace "REPLACE_DATABASE_PASS" "$db_normal_pass" "/etc"
|
||||||
|
__find_replace "REPLACE_ROOT_ADMIN" "$db_admin_user" "/etc"
|
||||||
|
__find_replace "REPLACE_ROOT_PASS" "$db_admin_pass" "/etc"
|
||||||
|
__find_replace "REPLACE_DATABASE_ROOT_USER" "$db_admin_user" "/etc"
|
||||||
|
__find_replace "REPLACE_DATABASE_ROOT_PASS" "$db_admin_pass" "/etc"
|
||||||
|
__find_replace "REPLACE_DATABASE_NAME" "$DATABASE_NAME" "/etc"
|
||||||
|
__find_replace "REPLACE_DATABASE_DIR" "$DATABASE_DIR" "/etc"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
__initialize_db_users() {
|
__initialize_db_users() {
|
||||||
|
Loading…
Reference in New Issue
Block a user