cdist-contrib/type/__wireguard/gencode-remote

9 lines
166 B
Bash

#!/bin/sh
if grep -q "^__block/${__object_id:?}" "${__messages_in:?}"; then
cat <<- EOF
wg syncconf ${__object_id:?} /etc/wireguard/${__object_id:?}.conf
EOF
fi