fix: custom script initialization check (#13)

Signed-off-by: Lukas Behal <e-lukas.behal@homecredit.eu>
This commit is contained in:
Lukas 2022-07-01 16:48:52 +02:00 committed by Bitnami Containers
parent ee042a294e
commit e126356f75
1 changed files with 1 additions and 1 deletions

View File

@ -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