11 lines
201 B
Plaintext
11 lines
201 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
iface="$(cat "${__object:?}/parameter/iface")"
|
||
|
|
||
|
if grep -q "^__block/${__object_id:?}" "${__messages_in:?}";
|
||
|
then
|
||
|
cat <<- EOF
|
||
|
wg syncconf ${iface:?} /etc/wireguard/${iface:?}.conf
|
||
|
EOF
|
||
|
fi
|