mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-13 19:11:35 +02:00
add heimdall
This commit is contained in:
5
heimdall/root/etc/cont-init.d/00-ha-env
Normal file
5
heimdall/root/etc/cont-init.d/00-ha-env
Normal 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
|
||||
7
heimdall/root/etc/cont-init.d/20-folders
Normal file
7
heimdall/root/etc/cont-init.d/20-folders
Normal 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
|
||||
Reference in New Issue
Block a user