add heimdall

This commit is contained in:
Arne Petersen
2020-08-15 12:23:57 +02:00
parent 4628fb6380
commit 458af04859
11 changed files with 135 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,7 @@
#!/usr/bin/with-contenv bash
if [ ! -d /config/heimdall ]; then
echo "Creating /config/heimdall"
mkdir -p /config/heimdall
chown -R abc:abc /config/heimdall
fi