lixonet-ee/build.sh

17 lines
339 B
Bash

#!/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