mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
Alex Palaistras
bef546cb79
This commit updates to the latest version of RSS2Email, and uses `podman volume mount` rather than ephemeral containers for affecting changes.
15 lines
490 B
Desktop File
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) && rf -f $V/%i.conf"
|
|
ExecStopPost=/bin/podman volume unmount rss2email-feeds
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|