mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-15 12:59:51 -04:00
* cron in Docker image https://github.com/FreshRSS/FreshRSS/issues/1869 * Fix cron CMD * Minor readme * Docker run d instead of dit There should not be a need for STDIN or TTY * Minor sed param
13 lines
227 B
Bash
Executable File
13 lines
227 B
Bash
Executable File
#!/bin/sh
|
|
|
|
php -f ./cli/prepare.php > /dev/null
|
|
|
|
chown -R :www-data .
|
|
chmod -R g+r . && chmod -R g+w ./data/
|
|
|
|
if [ -n "$CRON_MIN" ]; then
|
|
sed -r -i "/FreshRSS/s/^[^ ]+ /$CRON_MIN /" /var/spool/cron/crontabs/root
|
|
fi
|
|
|
|
exec "$@"
|