mirror of
https://github.com/bitnami/containers.git
synced 2026-03-16 06:49:12 +08:00
18 lines
399 B
Bash
Executable File
18 lines
399 B
Bash
Executable File
#!/bin/bash
|
|
|
|
. /opt/bitnami/base/functions
|
|
. /opt/bitnami/base/helpers
|
|
|
|
USER=airflow
|
|
DAEMON=airflow
|
|
EXEC=$(which $DAEMON)
|
|
START_COMMAND="${EXEC} scheduler | tee /opt/bitnami/airflow/logs/airflow-scheduler.log"
|
|
|
|
info "Starting ${DAEMON}..."
|
|
# If container is started as `root` user
|
|
if [ $EUID -eq 0 ]; then
|
|
exec gosu ${USER} bash -c "${START_COMMAND}"
|
|
else
|
|
exec bash -c "${START_COMMAND}"
|
|
fi
|