Commit 963429de by Chavee Issariyapat

add env VERNEMQ_WEBHOOK_PAYLOAD (on/off)

parent 9aa9a844
...@@ -100,6 +100,11 @@ EOF ...@@ -100,6 +100,11 @@ EOF
#echo "vmq_webhooks.webhook8.endpoint = ${VERNEMQ_WEBHOOK_HOST}/onpub" >> /etc/vernemq/vernemq.conf #echo "vmq_webhooks.webhook8.endpoint = ${VERNEMQ_WEBHOOK_HOST}/onpub" >> /etc/vernemq/vernemq.conf
fi fi
if env | grep -q "VERNEMQ_WEBHOOK_PAYLOAD"; then
echo "vmq_webhooks.mywebhook1.no_payload = ${VERNEMQ_WEBHOOK_PAYLOAD}" >> /etc/vernemq/vernemq.conf
fi
echo "########## End ##########" >> /etc/vernemq/vernemq.conf echo "########## End ##########" >> /etc/vernemq/vernemq.conf
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment