mirror of
https://github.com/casjaysdevdocker/deno
synced 2025-01-18 12:34:21 -05:00
🗃 Modified: rootfs/usr/local/etc/docker/functions/entrypoint.sh 🗃
Modified: rootfs/usr/local/etc/docker/functions/entrypoint.sh
This commit is contained in:
parent
5db66e5d83
commit
4633083a2a
@ -502,7 +502,7 @@ __start_init_scripts() {
|
|||||||
name="$(basename "$init")"
|
name="$(basename "$init")"
|
||||||
(eval "$init" &)
|
(eval "$init" &)
|
||||||
initStatus=$(($? + initStatus))
|
initStatus=$(($? + initStatus))
|
||||||
sleep 10
|
sleep 20
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -660,20 +660,21 @@ __initialize_replace_variables() {
|
|||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
__initialize_database() {
|
__initialize_database() {
|
||||||
[ "$IS_DATABASE_SERVICE" = "yes" ] || return 0
|
[ "$IS_DATABASE_SERVICE" = "yes" ] || return 0
|
||||||
|
local dir="${1:-$ETC_DIR}"
|
||||||
local db_normal_user="${DATABASE_USER_NORMAL:-$user_name}"
|
local db_normal_user="${DATABASE_USER_NORMAL:-$user_name}"
|
||||||
local db_normal_pass="${DATABASE_PASS_NORMAL:-$user_pass}"
|
local db_normal_pass="${DATABASE_PASS_NORMAL:-$user_pass}"
|
||||||
local db_admin_user="${DATABASE_USER_ROOT:-$root_user_name}"
|
local db_admin_user="${DATABASE_USER_ROOT:-$root_user_name}"
|
||||||
local db_admin_pass="${DATABASE_PASS_ROOT:-$root_user_pass}"
|
local db_admin_pass="${DATABASE_PASS_ROOT:-$root_user_pass}"
|
||||||
[ -n "$db_normal_user" ] && __replace "REPLACE_USER_NAME" "$db_normal_user" "$1"
|
__find_replace "REPLACE_USER_NAME" "$db_normal_user" "$dir"
|
||||||
[ -n "$db_normal_pass" ] && __replace "REPLACE_USER_PASS" "$db_normal_pass" "$1"
|
__find_replace "REPLACE_USER_PASS" "$db_normal_pass" "$dir"
|
||||||
[ -n "$db_normal_user" ] && __replace "REPLACE_DATABASE_USER" "$db_normal_user" "$1"
|
__find_replace "REPLACE_DATABASE_USER" "$db_normal_user" "$dir"
|
||||||
[ -n "$db_normal_pass" ] && __replace "REPLACE_DATABASE_PASS" "$db_normal_pass" "$1"
|
__find_replace "REPLACE_DATABASE_PASS" "$db_normal_pass" "$dir"
|
||||||
[ -n "$db_admin_user" ] && __replace "REPLACE_ROOT_ADMIN" "$db_admin_user" "$1"
|
__find_replace "REPLACE_ROOT_ADMIN" "$db_admin_user" "$dir"
|
||||||
[ -n "$db_admin_pass" ] && __replace "REPLACE_ROOT_PASS" "$db_admin_pass" "$1"
|
__find_replace "REPLACE_ROOT_PASS" "$db_admin_pass" "$dir"
|
||||||
[ -n "$db_admin_user" ] && __replace "REPLACE_DATABASE_ROOT_USER" "$db_admin_user" "$1"
|
__find_replace "REPLACE_DATABASE_ROOT_USER" "$db_admin_user" "$dir"
|
||||||
[ -n "$db_admin_pass" ] && __replace "REPLACE_DATABASE_ROOT_PASS" "$db_admin_pass" "$1"
|
__find_replace "REPLACE_DATABASE_ROOT_PASS" "$db_admin_pass" "$dir"
|
||||||
[ -n "$DATABASE_NAME" ] && __replace "REPLACE_DATABASE_NAME" "$DATABASE_NAME" "$1"
|
__find_replace "REPLACE_DATABASE_NAME" "$DATABASE_NAME" "$dir"
|
||||||
[ -n "$DATABASE_DIR" ] && __replace "REPLACE_DATABASE_DIR" "$DATABASE_DIR" "$1"
|
__find_replace "REPLACE_DATABASE_DIR" "$DATABASE_DIR" "$dir"
|
||||||
}
|
}
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
__initialize_db_users() {
|
__initialize_db_users() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user