From a1d805a751088a8fbb85e0d71e189de3f801ab34 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 15 Jan 2024 21:00:19 +0300 Subject: [PATCH] tweaks... Signed-off-by: Alex A. Naanou --- wireguard/make.sh | 8 -------- wireguard/templates/root/Makefile | 1 + 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/wireguard/make.sh b/wireguard/make.sh index 99beb31..05d70d6 100755 --- a/wireguard/make.sh +++ b/wireguard/make.sh @@ -110,14 +110,6 @@ echo "# Setup: wireguard default profile..." echo "# client config:" @ mkdir -p clients @ pct pull $ID /etc/wireguard/clients/default.conf clients/default.conf -# show the profile as a qrcode... -#if [ "$QRCODE" ] ; then -# echo "# default profile:" -# @ lxc-attach $ID -- qrencode -t UTF8 -r /etc/wireguard/clients/default.conf -#fi - -#echo "# Setup: bridge device..." -@ lxc-attach $ID wg-quick up wg0 echo "# Post config..." pctSet $ID "${OPTS_STAGE_2}" $REBOOT diff --git a/wireguard/templates/root/Makefile b/wireguard/templates/root/Makefile index d50a7f5..f6dedba 100644 --- a/wireguard/templates/root/Makefile +++ b/wireguard/templates/root/Makefile @@ -40,6 +40,7 @@ $(SERVER_CONF): $(SERVER_TPL) $(SERVER_KEY) -e 's/\$${\SERVER_PRIVATE_KEY}/'$$(sed -e 's/\//\\\//g' "$(SERVER_KEY)")'/g' \ > "$@" chmod 600 $@ + wg-quick up wg0 # XXX need to figure out a way to link this to the .config file without # conflicting with the server's wg0.conf