Merge branch 'master' into 'master'

Use scheduler addon to update feeds

Closes #6

See merge request !1
This commit is contained in:
dswd 2017-02-23 13:02:42 +00:00
commit b48681e37c
2 changed files with 7 additions and 7 deletions

View File

@ -10,7 +10,13 @@
"httpPort": 8000, "httpPort": 8000,
"addons": { "addons": {
"localstorage": {}, "localstorage": {},
"mysql": {} "mysql": {},
"scheduler": {
"update_feeds": {
"schedule": "*/1 * * * *",
"command": "/usr/local/bin/gosu www-data:www-data php /app/code/app/actualize_script.php"
}
}
}, },
"manifestVersion": 1, "manifestVersion": 1,
"website": "http://www.freshrss.org", "website": "http://www.freshrss.org",

View File

@ -60,12 +60,6 @@ EOF
chown -R www-data.www-data /run/php /app/data chown -R www-data.www-data /run/php /app/data
echo "Trying to update feeds every 60 secs"
while true; do
sleep 60
sudo -u www-data php /app/code/app/actualize_script.php >/dev/stdout 2>/dev/stderr
done &
echo "Starting apache" echo "Starting apache"
APACHE_CONFDIR="" source /etc/apache2/envvars APACHE_CONFDIR="" source /etc/apache2/envvars
rm -f "${APACHE_PID_FILE}" rm -f "${APACHE_PID_FILE}"