mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 21:50:46 +00:00
Alex Palaistras
14a53e567d
This is a basic implementation on top of the venerable `rss2email` script, and is intended to be driven by a timer and the `rss2email-subscribe` service, which manages the subscribed feeds.
19 lines
716 B
Desktop File
19 lines
716 B
Desktop File
[Unit]
|
|
Description=RSS Feed Subscription for %I
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=true
|
|
SyslogIdentifier=%N
|
|
ExecStart=/bin/podman run --rm --entrypoint /bin/bash \
|
|
--volume rss2email-feeds:/etc/rss2email/conf.d:z \
|
|
localhost/rss2email:latest -c \
|
|
"printf '[feed.%%s]\nurl = %I\n' $(md5sum <<< '%i' | cut -c-32) > /etc/rss2email/conf.d/%i.conf"
|
|
ExecStop=/bin/podman run --rm --entrypoint /bin/bash \
|
|
--volume rss2email-feeds:/etc/rss2email/conf.d:z \
|
|
localhost/rss2email:latest -c \
|
|
"rm -f /etc/rss2email/conf.d/%i.conf"
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|