cdist-contrib/type/__wireguard/gencode-remote

9 lines
166 B
Plaintext
Raw Normal View History

2021-06-09 14:37:05 +00:00
#!/bin/sh
if grep -q "^__block/${__object_id:?}" "${__messages_in:?}"; then
cat <<- EOF
wg syncconf ${__object_id:?} /etc/wireguard/${__object_id:?}.conf
EOF
fi