#!/bin/sh set -e echo "executing entrypoint.sh..." if [ -n "$SSH_HOST_KEY" ] then echo "setting ssh known hosts" echo "$SSH_HOST_KEY" > /root/.ssh/known_hosts fi if [ -n "$CRON_SCHEDULE" ] then echo "setting up cronjob..." cron_schedule="${CRON_SCHEDULE:?CRON_SCHEDULE not set}" echo "$cron_schedule /cronjob.sh" | crontab - crontab -l crond -f -d8 -L /dev/stdout else # startup for exporter apk --no-cache add curl exec /sbin/tini -- "$@" fi