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

@ -60,6 +60,9 @@ do
if [ "${wg_enabled:-0}" -eq "1" ]; then if [ "${wg_enabled:-0}" -eq "1" ]; then
mkdir --verbose wireguard; cp -rv ../wireguard/* wireguard/ mkdir --verbose wireguard; cp -rv ../wireguard/* wireguard/
fi 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) # Copy system-local custom files (if they even exist)
cp -rv $dir/tinc/* tinc/ cp -rv $dir/tinc/* tinc/
@ -68,6 +71,9 @@ do
if [ "${wg_enabled:-0}" -eq "1" ]; then if [ "${wg_enabled:-0}" -eq "1" ]; then
cp -rv $dir/wireguard/* wireguard/ cp -rv $dir/wireguard/* wireguard/
fi fi
if [ "${ddns:-0}" -eq "1" ]; then
cp -rv $dir/ddns/* ddns/
fi
# Tinc # Tinc
# Remove existing configuration # Remove existing configuration