config

System config files for garbash.com
git clone git://git.garbash.com/alex/config
Log | Files | Refs | README | LICENSE

commit 9f4930befc9b67169f0d42ddc0d8a7a69da9221e
parent 62e5cb2e1e077c2c67abcd63cea4c2d3d877512e
Author: alex <alex@garbash.com>
Date:   Fri,  1 Oct 2021 22:17:00 -0400

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!

Diffstat:
Musr/local/bin/wggen | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 <<EOM > /etc/hostname.wg0 +cat <<EOM >> /etc/hostname.wg0 wgpeer $(cat "$CONF/public.key") wgaip 10.6.6.$NEXT/32 EOM