Update tinc/lixonet/tinc.conf.tmpl, build.sh files

This commit is contained in:
sump pump 2020-04-27 20:33:02 +00:00
parent eeed147b50
commit 3e78c7743c
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,16 @@
#!/bin/sh
# Tinc
# Remove existing configuration
rm -rf /etc/tinc/*
# Copy all non-template files to /etc/(tinc)
find tinc -type d | xargs -I '{}' mkdir -p /etc/{}
find tinc -type f ! -name '*.tmpl' | xargs -I '{}' cp {} /etc/{}
# Mutate templates to /etc/(tinc) as well
#TODO
# Bird
rm -rf /etc/bird/*
docker-compose up -d --build