Daemon to update rss feeds
This commit is contained in:
parent
c3705e7df5
commit
3d37bbe948
@ -8400,6 +8400,20 @@ function install_rss_reader {
|
||||
echo "RSS reader domain:${RSS_READER_DOMAIN_NAME}" >> $COMPLETION_FILE
|
||||
fi
|
||||
|
||||
# daemon to update feeds
|
||||
echo '[Unit]' > /etc/systemd/system/ttrss.service
|
||||
echo 'Description=ttrss_backend' >> /etc/systemd/system/ttrss.service
|
||||
echo 'After=network.target mysql.service' >> /etc/systemd/system/ttrss.service
|
||||
echo '' >> /etc/systemd/system/ttrss.service
|
||||
echo '[Service]' >> /etc/systemd/system/ttrss.service
|
||||
echo 'User=www-data' >> /etc/systemd/system/ttrss.service
|
||||
echo "ExecStart=$RSS_READER_PATH/update_daemon2.php" >> /etc/systemd/system/ttrss.service
|
||||
echo '' >> /etc/systemd/system/ttrss.service
|
||||
echo '[Install]' >> /etc/systemd/system/ttrss.service
|
||||
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/ttrss.service
|
||||
systemctl enable ttrss
|
||||
systemctl start ttrss
|
||||
|
||||
# some post-install instructions for the user
|
||||
if ! grep -q $"RSS Reader" /home/$MY_USERNAME/README; then
|
||||
echo '' >> /home/$MY_USERNAME/README
|
||||
|
Loading…
x
Reference in New Issue
Block a user