Update build.sh

This commit is contained in:
Manevolent 2023-03-21 13:18:19 -06:00 committed by GitHub
parent 627b5df4ab
commit 8d41921fb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,18 +57,24 @@ do
mkdir --verbose tinc; cp -rv ../tinc/* tinc/
mkdir --verbose bird; cp -rv ../bird/* bird/
mkdir --verbose bind; cp -rv ../bind/* bind/
if [ "${wg_enabled:-0}" -eq "1" ]; then
mkdir --verbose wireguard; cp -rv ../wireguard/* wireguard/
fi
if [ "${wg_enabled:-0}" -eq "1" ]; then
mkdir --verbose wireguard; cp -rv ../wireguard/* wireguard/
fi
if [ "${ddns_enabled:-0}" -eq "1" ]; then
mkdir --verbose ddns; cp -rv ../ddns/* ddns/
fi
# Copy system-local custom files (if they even exist)
cp -rv $dir/tinc/* tinc/
cp -rv $dir/bird/* bird/
cp -rv $dir/bind/* bind/
if [ "${wg_enabled:-0}" -eq "1" ]; then
cp -rv $dir/wireguard/* wireguard/
fi
if [ "${wg_enabled:-0}" -eq "1" ]; then
cp -rv $dir/wireguard/* wireguard/
fi
if [ "${ddns:-0}" -eq "1" ]; then
cp -rv $dir/ddns/* ddns/
fi
# Tinc
# Remove existing configuration
rm -v -rf /etc/tinc/$netname/*