Update build.sh

This commit is contained in:
sump pump 2020-05-20 20:56:04 +00:00
parent 7a8432e9ce
commit 7c79d6ae23

View File

@ -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' -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/lixonet/rsa_key.priv
# Set permissions for tinc scripts # Set permissions for tinc scripts
chmod +x /etc/tinc/lixonet/tinc-up chmod +x /etc/tinc/lixonet/tinc-up
chmod +x /etc/tinc/lixonet/tinc-down chmod +x /etc/tinc/lixonet/tinc-down