Update build.sh
This commit is contained in:
parent
08401cacbf
commit
99238dea5f
13
build.sh
13
build.sh
@ -1,14 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
|
||||||
# Tinc
|
# Tinc
|
||||||
# Remove existing configuration
|
# Remove existing configuration
|
||||||
rm -v -rf /etc/tinc/*
|
rm -v -rf /etc/tinc/*
|
||||||
# Copy all non-template files to /etc/(tinc)
|
# Copy all tinc default files to /etc/(tinc)
|
||||||
find tinc -type d | xargs -I '{}' mkdir --verbose -p /etc/{}
|
find tinc -type d | xargs -I '{}' mkdir --verbose -p /etc/{}
|
||||||
find tinc -type f ! -name '*.tmpl' | xargs -I '{}' cp --verbose {} /etc/{}
|
find tinc -type f | xargs -I '{}' cp --verbose {} /etc/{}
|
||||||
# Mutate templates to /etc/(tinc) as well
|
# Fill out templates and remove them after
|
||||||
#TODO
|
find /etc/tinc/ -type f -name '*.tmpl' | xargs -I '{}' sh -c 'sigil -f {} > `dirname {}`/`basename {} .tmpl`'
|
||||||
|
find /etc/tinc/ -type f -name '*.tmpl' | xargs -I '{}' rm -f {}
|
||||||
|
# Copy private key
|
||||||
|
cp /etc/lixonet/tinc.key /etc/tinc/rsa_key.priv
|
||||||
|
|
||||||
|
|
||||||
# Bird
|
# Bird
|
||||||
rm -rf /etc/bird/*
|
rm -rf /etc/bird/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user