lixonet-ee/build.sh
2020-04-27 20:34:45 +00:00

17 lines
369 B
Bash

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