From 9f4930befc9b67169f0d42ddc0d8a7a69da9221e Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 1 Oct 2021 22:17:00 -0400 Subject: [PATCH] wggen: Fix appending to hostname.if(5) file Whoops! Each new wggen key was clobbering the old file :/ Thankfully, this wasn't hard to recreate! --- usr/local/bin/wggen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/bin/wggen b/usr/local/bin/wggen index b89a098..238fdaa 100755 --- a/usr/local/bin/wggen +++ b/usr/local/bin/wggen @@ -46,7 +46,7 @@ Endpoint = 45.79.221.98:7149 EOM # Lastly, append to /etc/hostname.wg0 and restart it -cat < /etc/hostname.wg0 +cat <> /etc/hostname.wg0 wgpeer $(cat "$CONF/public.key") wgaip 10.6.6.$NEXT/32 EOM -- libgit2 1.1.1