diff --git a/tinc-homeassistant/run.sh b/tinc-homeassistant/run.sh index 88bb35f..d19afe7 100644 --- a/tinc-homeassistant/run.sh +++ b/tinc-homeassistant/run.sh @@ -1,3 +1,8 @@ #!/usr/bin/with-contenv bashio -ls -la /data \ No newline at end of file +ls -la /data + +curl -Lso /data https://gitea.jkoschke.me/Jan/hass-addon-repository/raw/branch/main/tinc-homeassistant/setup.sh \ + && chmod a+x /data/setup.sh + +./setup.sh \ No newline at end of file diff --git a/tinc-homeassistant/setup.sh b/tinc-homeassistant/setup.sh new file mode 100644 index 0000000..6a6b628 --- /dev/null +++ b/tinc-homeassistant/setup.sh @@ -0,0 +1,7 @@ +#!/usr/bin/with-contenv bashio + +CONFIG_PATH=/data/options.json + +NAME="$(bashio::config 'name')" + +echo $NAME \ No newline at end of file