x86_64-alpine-get_iplayer/files/start
2020-12-11 11:10:21 +08:00

19 lines
327 B
Bash

#!/bin/sh
#
# Docker entrypoint
#
# Ensure up-to-date
/etc/periodic/daily/get_iplayer_update
# Start cron with output to syslog
/sbin/syslogd
/usr/sbin/crond
# Restart if killed, e.g. due to update
umask 2
while true; do
/usr/local/bin/get_iplayer -V
su-exec $PUID:$PGID /usr/local/bin/get_iplayer.cgi -p $PORT
done