fix entrypoint.sh

This commit is contained in:
Булат Хайруллин 2024-12-10 04:21:19 +03:00
parent d6a8739d81
commit dddeac0b1b

View file

@ -55,6 +55,10 @@ for F in $(find . -type f); do
sed -i "s/Encrypted 657276755ddceddca104c281979414ab64cc9bacc9/$DB_METRICS_PASSWORD/g" $F
done;
#Запускаем job один раз при старте контейнера
echo "---- Run info_recruits/job_info_recruits.kjb ----"
bash -c ". /root/.env.sh; /opt/pentaho-di/data-integration/kitchen.sh /file:////opt/pentaho-di/mappings_old/info_recruits/job_info_recruits.kjb > /proc/1/fd/1 2>&1"
if [ $RUNONCE == true ]; then
echo "---- Run job_general.kjb ----"
bash -c ". /root/.env.sh; /opt/pentaho-di/data-integration/kitchen.sh /file:////opt/pentaho-di/mappings_old/job_general.kjb > /proc/1/fd/1 2>&1"
@ -62,10 +66,7 @@ if [ $RUNONCE == true ]; then
bash -c ". /root/.env.sh; /opt/pentaho-di/data-integration/kitchen.sh /file:////opt/pentaho-di/mappings_old/metrics/job_metr.kjb > /proc/1/fd/1 2>&1"
exit $?
else
#Запускаем job один раз при старте контейнера
cat /root/crontab | crontab -
cron -f
echo "---- Run info_recruits/job_info_recruits.kjb ----"
bash -c ". /root/.env.sh; /opt/pentaho-di/data-integration/kitchen.sh /file:////opt/pentaho-di/mappings_old/info_recruits/job_info_recruits.kjb > /proc/1/fd/1 2>&1"
fi