Files
hass-addon-repository/tinc-homeassistant/setup.sh
jkoschke 8e88f110e6 .
2022-01-13 00:50:02 +01:00

10 lines
283 B
Bash

#!/usr/bin/with-contenv bashio
CONFIG_PATH=/data/options.json
NAME="$(bashio::config 'name')"
curl -Lso /data/tinc.config https://gitea.jkoschke.me/Jan/hass-addon-repository/raw/branch/main/tinc-homeassistant/tinc.config
sed -i 's|{{NAME}}|'$NAME'|' tinc.config
cat ./tinc.config