Update build.sh
This commit is contained in:
parent
578ff41400
commit
f2b64fa296
4
build.sh
4
build.sh
@ -7,8 +7,8 @@ rm -v -rf /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 | xargs -I '{}' cp --verbose {} /etc/{}
|
find tinc -type f | xargs -I '{}' cp --verbose {} /etc/{}
|
||||||
# Fill out templates and remove them after
|
# Fill out templates and remove them after
|
||||||
find /etc/tinc/ -type f -name '*.tmpl' | xargs -I '{}' sh -c 'sigil -f $1 $(cat /etc/lixonet/lixonet.conf) | tr '\n' ' ') > "$(dirname $1)/$(basename $1 .tmpl)"' -- {}
|
find /etc/tinc/ -type f -name '*.tmpl' -exec sh -c 'sigil -f {} -p $(cat /etc/lixonet/lixonet.conf | tr "\\n" " ") > "$(dirname {})/$(basename {} .tmpl)"' {} \;
|
||||||
#find /etc/tinc/ -type f -name '*.tmpl' | xargs -I '{}' rm -f {}
|
find /etc/tinc/ -type f -name '*.tmpl' | xargs -I '{}' rm -f {}
|
||||||
# Copy private key
|
# Copy private key
|
||||||
cp /etc/lixonet/tinc.key /etc/tinc/rsa_key.priv
|
cp /etc/lixonet/tinc.key /etc/tinc/rsa_key.priv
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user