Update build.sh
This commit is contained in:
parent
7a8432e9ce
commit
7c79d6ae23
2
build.sh
2
build.sh
@ -10,7 +10,7 @@ find tinc -type f | xargs -I '{}' cp --verbose {} /etc/{}
|
||||
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 {}
|
||||
# Copy private key
|
||||
cp /etc/lixonet/tinc.key /etc/tinc/rsa_key.priv
|
||||
cp /etc/lixonet/tinc.key /etc/tinc/lixonet/rsa_key.priv
|
||||
# Set permissions for tinc scripts
|
||||
chmod +x /etc/tinc/lixonet/tinc-up
|
||||
chmod +x /etc/tinc/lixonet/tinc-down
|
||||
|
Loading…
x
Reference in New Issue
Block a user