From 3077054fefb89a2021c55b9e6530a6b475867e05 Mon Sep 17 00:00:00 2001
From: Manevolent <Manevolent@users.noreply.github.com>
Date: Tue, 25 Apr 2023 17:51:44 -0600
Subject: [PATCH] Update build.sh

---
 build.sh | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/build.sh b/build.sh
index ea3dc11..7a88841 100755
--- a/build.sh
+++ b/build.sh
@@ -101,9 +101,7 @@ do
     sigil_vars=$(echo "$sigil_vars tinc_peers=$tinc_peers")
     #  Copy private key
     cp -v /etc/lixonet/$netname/tinc.key $config_out/tinc/rsa_key.priv
-    #  Set permissions for tinc scripts
-    chmod +x $config_out/tinc/tinc-up $config_out/tinc/tinc-down $config_out/tinc/subnet-up $config_out/tinc/subnet-down $config_out/tinc/host-up $config_out/tinc/host-down $config_out/tinc/check-node
-
+   
     # Bird
     #  Remove existing configuration
     rm -v -rf $config_out/bird/*
@@ -150,6 +148,7 @@ do
     process_templates "$config_out/" "$sigil_vars"
     echo "Setting any processed shell scripts as executable..."
     find $config_out -type f -name "*.sh" | xargs -I '{}' chmod -v +x {}
+    chmod -v +x $config_out/tinc/tinc-up $config_out/tinc/tinc-down $config_out/tinc/subnet-up $config_out/tinc/subnet-down $config_out/tinc/host-up $config_out/tinc/host-down $config_out/tinc/check-node
 	
     cp -rv $dir/docker/* docker/
     cp -v ./../docker-compose.yml.tmpl .