Use separate container for the RSS plugin

This commit is contained in:
Bruno Perel
2017-12-03 01:47:47 +01:00
parent 486d9bfd2b
commit 4e6e8511b8
10 changed files with 67 additions and 17 deletions

13
plugins/rss/start.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
# Source our persisted env variables from container startup
dockerize -template /etc/transmission-rss/environment-variables.tmpl:/etc/transmission-rss/environment-variables.sh
. /etc/transmission-rss/environment-variables.sh
if [ -z "${RSS_URL}" ] || [ "${RSS_URL}" = "**None**" ] ; then
echo "NO RSS URL CONFIGURED, IGNORING"
else
dockerize -template /etc/transmission-rss/transmission-rss.tmpl:/etc/transmission-rss.conf
echo "STARTING RSS PLUGIN"
transmission-rss
fi