buildx/freshrss/entrypoint.sh

19 lines
481 B
Bash
Raw Normal View History

2020-09-12 08:16:24 +00:00
#!/bin/sh
php -f ./cli/prepare.php >/dev/null
if [ -n "$CRON_MIN" ]; then
(
echo "export TZ=$TZ"
echo "export COPY_LOG_TO_SYSLOG=$COPY_LOG_TO_SYSLOG"
echo "export COPY_SYSLOG_TO_STDERR=$COPY_SYSLOG_TO_STDERR"
echo "export FRESHRSS_ENV=$FRESHRSS_ENV"
) >/var/www/FreshRSS/Docker/env.txt
2020-09-12 08:46:11 +00:00
echo "${CRON_MIN} * * * * . /var/www/FreshRSS/Docker/env.txt; \
2020-10-22 09:44:33 +00:00
php /var/www/FreshRSS/app/actualize_script.php \
2020-09-12 08:46:11 +00:00
2>> /proc/1/fd/2 > /tmp/FreshRSS.log" | crontab -
2020-09-12 08:16:24 +00:00
fi
exec "$@"