From a3fff0cf447e907d80849e4d90057b033d4ef7d0 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 11 Jan 2024 02:23:33 +0300 Subject: [PATCH] cleanup... Signed-off-by: Alex A. Naanou --- wireguard/templates/root/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wireguard/templates/root/Makefile b/wireguard/templates/root/Makefile index 061d152..a08b3cb 100644 --- a/wireguard/templates/root/Makefile +++ b/wireguard/templates/root/Makefile @@ -62,8 +62,10 @@ $(SERVER_CONF): $(SERVER_TPL) $(SERVER_KEY) -e 's/\$${\CLIENT_PUBLIC_KEY}/'$$(sed -e 's/\//\\\//g' "$(CLIENT_DIR)/$*_id.pub")'/g' \ -e 's/\$${\SERVER_PUBLIC_KEY}/'$$(sed -e 's/\//\\\//g' "$(SERVER_PUBLIC_KEY)")'/g' \ >> "$(SERVER_CONF)" - [ -z "$$QRCODE" ] \ - || qrencode -t UTF8 -r "$(CLIENT_DIR)/$*.conf" + @if [ -z "$$QRCODE" ] ; then \ + echo "# Profile: $*:" \ + qrencode -t UTF8 -r "$(CLIENT_DIR)/$*.conf" \ + fi server: $(SERVER_CONF)