Skip to content

Commit 0777ddf

Browse files
authored
Setup cron in install/freshrss-install.sh (#2412)
1 parent 18bd71d commit 0777ddf

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

install/freshrss-install.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ chmod -R g+rX /opt/freshrss
5050
chmod -R g+w /opt/freshrss/data/
5151
msg_ok "Installed FreshRSS"
5252

53+
msg_info "Setting up cron job for feed refresh"
54+
cat <<EOF >/etc/cron.d/freshrss-actualize
55+
*/15 * * * * www-data /bin/php -f /opt/freshrss/app/actualize_script.php > /tmp/FreshRSS.log 2>&1
56+
EOF
57+
chmod 644 /etc/cron.d/freshrss-actualize
58+
msg_ok "Set up Cron - if you need to modify the timing edit file /etc/cron.d/freshrss-actualize"
59+
5360
msg_info "Creating Service"
5461
cat <<EOF >/etc/apache2/sites-available/freshrss.conf
5562
<VirtualHost *:80>

json/freshrss.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
{
3535
"text": "Database credentials: `cat ~/freshrss.creds`",
3636
"type": "info"
37+
},
38+
{
39+
"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",
40+
"type": "info"
3741
}
3842
]
3943
}

0 commit comments

Comments
 (0)