store wireguard client public keys
This commit is contained in:
5
wg.mk
5
wg.mk
@@ -1,3 +1,8 @@
|
||||
public_key := $(shell cat /etc/wireguard/dmz_public_key)
|
||||
name := $(shell git config list | grep user.nam | cut -d= -f2)
|
||||
|
||||
wgkeys.rec: /etc/wireguard/dmz_public_key
|
||||
recins $@ -t $(basename $@) -f name -v "$(name)" -f pubkey -v "$(public_key)"
|
||||
|
||||
/etc/wireguard/dmz_private_key: | /bin/wg
|
||||
$| genkey > $@
|
||||
|
||||
Reference in New Issue
Block a user