From 24498d6a77e0c0b749a8d6e3906f6457b44e0e8a Mon Sep 17 00:00:00 2001 From: Pavel Zilke Date: Sat, 7 Sep 2024 11:41:39 +0300 Subject: [PATCH] run job info_recruits/job_info_recruits.kjb --- entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index da95f54..4a2a819 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -43,6 +43,9 @@ for F in $(find . -type f); do sed -i "s/Encrypted 2beebdaaa1ac8978aaa54aa72ce93bcc9/$DB_SUBPOENA_PASSWORD/g" $F done; +#Запускаем job один раз при старте контейнера +bash -c ". /root/.env.sh; /opt/pentaho-di/data-integration/kitchen.sh /file:////opt/pentaho-di/mappings/info_recruits/job_info_recruits.kjb > /proc/1/fd/1 2>&1" + if [ $RUNONCE == true ]; then bash -c ". /root/.env.sh; /opt/pentaho-di/data-integration/kitchen.sh /file:////opt/pentaho-di/mappings/job_general.kjb > /proc/1/fd/1 2>&1" exit $?