for to have latest for jackett, radarr, sonarr

This commit is contained in:
Alexandre
2020-12-04 14:50:56 +01:00
parent 4ad51842a1
commit 541a0f549b
27 changed files with 506 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bashio
for k in $(bashio::jq "${__BASHIO_ADDON_CONFIG}" 'keys | .[]'); do
printf "$(bashio::config $k)" > /var/run/s6/container_environment/$k
done

View File

@@ -0,0 +1,13 @@
#!/usr/bin/with-contenv bash
if [ ! -d /config/jackett ]; then
echo "Creating /config/jackett"
mkdir -p /config/jackett
chown -R abc:abc /config/jackett
fi
if [ ! -d /share/jackett ]; then
echo "Creating /share/jackett"
mkdir -p /share/jackett
chown -R abc:abc /share/jackett
fi