mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-03-10 07:30:28 +00:00
Setup cron in install/freshrss-install.sh (#2412)
This commit is contained in:
parent
18bd71da89
commit
0777ddfbfc
@ -50,6 +50,13 @@ chmod -R g+rX /opt/freshrss
|
|||||||
chmod -R g+w /opt/freshrss/data/
|
chmod -R g+w /opt/freshrss/data/
|
||||||
msg_ok "Installed FreshRSS"
|
msg_ok "Installed FreshRSS"
|
||||||
|
|
||||||
|
msg_info "Setting up cron job for feed refresh"
|
||||||
|
cat <<EOF >/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"
|
msg_info "Creating Service"
|
||||||
cat <<EOF >/etc/apache2/sites-available/freshrss.conf
|
cat <<EOF >/etc/apache2/sites-available/freshrss.conf
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
|
@ -34,6 +34,10 @@
|
|||||||
{
|
{
|
||||||
"text": "Database credentials: `cat ~/freshrss.creds`",
|
"text": "Database credentials: `cat ~/freshrss.creds`",
|
||||||
"type": "info"
|
"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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user