wireguard/application: Added sorting of peer files before combining

dehydrated
Felix Stupp 5 years ago
parent e09fb25104
commit 9394b66f47
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -1,6 +1,6 @@
dest:={{ global_wireguard_configuration_link_name }} dest:={{ global_wireguard_configuration_link_name }}
peer_files:=$(wildcard peers/*) peer_files:=$(sort $(wildcard peers/*))
${dest}/wireguard.cfg: main.cfg ${peer_files} ${dest}/wireguard.cfg: main.cfg ${peer_files}
cat $^ | sed '0,/<PRIVATEKEY>/{s#<PRIVATEKEY>#'"$$(cat {{ wireguard_private_key | quote }})"'#}' > "$@" cat $^ | sed '0,/<PRIVATEKEY>/{s#<PRIVATEKEY>#'"$$(cat {{ wireguard_private_key | quote }})"'#}' > "$@"

Loading…
Cancel
Save