mirror of
https://github.com/bitnami/containers.git
synced 2026-10-17 15:49:13 +02:00
fix: custom script initialization check (#13)
Signed-off-by: Lukas Behal <e-lukas.behal@homecredit.eu>
This commit is contained in:
committed by
Bitnami Containers
parent
ee042a294e
commit
e126356f75
@@ -534,7 +534,7 @@ influxdb_initialize() {
|
||||
# None
|
||||
#########################
|
||||
influxdb_custom_init_scripts() {
|
||||
if [[ -n $(find "${INFLUXDB_INITSCRIPTS_DIR}/" -type f -regex ".*\.\(sh\|txt\)") ]] && [[ ! -f "${INFLUXDB_INITSCRIPTS_DIR}/.user_scripts_initialized" ]]; then
|
||||
if [[ -n $(find "${INFLUXDB_INITSCRIPTS_DIR}/" -type f -regex ".*\.\(sh\|txt\)") ]] && [[ ! -f "${INFLUXDB_VOLUME_DIR}/.user_scripts_initialized" ]]; then
|
||||
info "Loading user's custom files from ${INFLUXDB_INITSCRIPTS_DIR} ..."
|
||||
local -r tmp_file="/tmp/filelist"
|
||||
if ! is_influxdb_running; then
|
||||
|
||||
Reference in New Issue
Block a user