Update build.sh

This commit is contained in:
sump pump 2020-04-27 20:34:06 +00:00
parent 3e78c7743c
commit d16b68e2e5

View File

@ -5,8 +5,8 @@
# Remove existing configuration # Remove existing configuration
rm -rf /etc/tinc/* rm -rf /etc/tinc/*
# Copy all non-template files to /etc/(tinc) # Copy all non-template files to /etc/(tinc)
find tinc -type d | xargs -I '{}' mkdir -p /etc/{} find tinc -type d | xargs -I '{}' mkdir -v -p /etc/{}
find tinc -type f ! -name '*.tmpl' | xargs -I '{}' cp {} /etc/{} find tinc -type f ! -name '*.tmpl' | xargs -I '{}' cp -v {} /etc/{}
# Mutate templates to /etc/(tinc) as well # Mutate templates to /etc/(tinc) as well
#TODO #TODO