From def6bffe67f24307b0db585d2c9b4e5ed65ee91c Mon Sep 17 00:00:00 2001 From: jkoschke Date: Thu, 13 Jan 2022 00:49:05 +0100 Subject: [PATCH] added base tinc config --- tinc-homeassistant/setup.sh | 3 +++ tinc-homeassistant/tinc.conf | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 tinc-homeassistant/tinc.conf diff --git a/tinc-homeassistant/setup.sh b/tinc-homeassistant/setup.sh index 6a6b628..d69da2d 100644 --- a/tinc-homeassistant/setup.sh +++ b/tinc-homeassistant/setup.sh @@ -4,4 +4,7 @@ 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 + echo $NAME \ No newline at end of file diff --git a/tinc-homeassistant/tinc.conf b/tinc-homeassistant/tinc.conf new file mode 100644 index 0000000..b28d575 --- /dev/null +++ b/tinc-homeassistant/tinc.conf @@ -0,0 +1,3 @@ +Name = {{NAME}} +AdressFamily = ipv4 +Interface = tun0 \ No newline at end of file