16 lines
247 B
Bash
Executable File
16 lines
247 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ -n "$SSH_HOST_KEY" ]
|
|
then
|
|
echo "$SSH_HOST_KEY" > /root/.ssh/known_hosts
|
|
fi
|
|
|
|
cron_schedule="${CRON_SCHEDULE:?CRON_SCHEDULE not set}"
|
|
|
|
echo "$cron_schedule /cronjob.sh" | crontab -
|
|
crontab -l
|
|
|
|
crond -f -d8 -L /dev/stdout
|