From 0777ddfbfc74bf4ab68a085d78f92f48ed988b73 Mon Sep 17 00:00:00 2001 From: zimmra <28514085+zimmra@users.noreply.github.com> Date: Sat, 15 Feb 2025 14:03:05 -0800 Subject: [PATCH] Setup cron in install/freshrss-install.sh (#2412) --- install/freshrss-install.sh | 7 +++++++ json/freshrss.json | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/install/freshrss-install.sh b/install/freshrss-install.sh index 8a6a1135c..c6c5c493f 100644 --- a/install/freshrss-install.sh +++ b/install/freshrss-install.sh @@ -50,6 +50,13 @@ chmod -R g+rX /opt/freshrss chmod -R g+w /opt/freshrss/data/ msg_ok "Installed FreshRSS" +msg_info "Setting up cron job for feed refresh" +cat </etc/cron.d/freshrss-actualize +*/15 * * * * www-data /bin/php -f /opt/freshrss/app/actualize_script.php > /tmp/FreshRSS.log 2>&1 +EOF +chmod 644 /etc/cron.d/freshrss-actualize +msg_ok "Set up Cron - if you need to modify the timing edit file /etc/cron.d/freshrss-actualize" + msg_info "Creating Service" cat </etc/apache2/sites-available/freshrss.conf diff --git a/json/freshrss.json b/json/freshrss.json index de1aa28a4..382f5c5cc 100644 --- a/json/freshrss.json +++ b/json/freshrss.json @@ -34,6 +34,10 @@ { "text": "Database credentials: `cat ~/freshrss.creds`", "type": "info" + }, + { + "text": "Per FreshRSS documentation, a cron job to actualize FreshRSS will be setup at `/etc/cron.d/freshrss-actualize`. This can be adjusted as needed", + "type": "info" } ] }