coreos-home-server/service/rss2email/systemd/rss2email-subscribe@.service
Alex Palaistras 3422f39a84 rss2email: Update to latest version, fix issues
This also enables multipart HTML and CSS in posts, improving readability
for all client types.
2022-10-02 14:53:26 +01:00

15 lines
490 B
Desktop File

[Unit]
Description=RSS Feed Subscription for %I
[Service]
Type=oneshot
RemainAfterExit=true
SyslogIdentifier=%N
ExecStart=/bin/sh -c "V=$(podman volume mount rss2email-feeds) && printf '[feed.%%s]\nurl = %I\n' $(md5sum <<< '%i' | cut -c-32) > $V/%i.conf"
ExecStartPost=/bin/podman volume unmount rss2email-feeds
ExecStop=/bin/sh -c "V=$(podman volume mount rss2email-feeds) && rm -f $V/%i.conf"
ExecStopPost=/bin/podman volume unmount rss2email-feeds
[Install]
WantedBy=multi-user.target