2020-06-07 06:46:18 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
UNBOUND_CERTS_DIR=/etc/unbound
|
|
|
|
|
|
|
|
if [ -f "$__object/parameter/enable_rc" ]; then
|
|
|
|
echo "unbound-control-setup -d $UNBOUND_CERTS_DIR"
|
|
|
|
echo "chown unbound:unbound $UNBOUND_CERTS_DIR/*.pem $UNBOUND_CERTS_DIR/*.key"
|
|
|
|
fi
|
2020-06-07 08:34:35 +00:00
|
|
|
|
|
|
|
cat << EOF
|
|
|
|
if pgrep unbound; then
|
|
|
|
service unbound reload
|
|
|
|
else
|
2020-07-27 12:53:45 +00:00
|
|
|
service unbound start
|
2020-06-07 08:34:35 +00:00
|
|
|
fi
|
|
|
|
EOF
|