hacks/forward-email-to-slack-webhook/install.sh

13 lines
363 B
Bash
Raw Normal View History

2019-03-27 16:06:23 +00:00
#!/bin/bash
D="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cp $D/email_to_webhook /usr/local/bin/email_to_webhook
chmod +x /usr/local/bin/email_to_webhook
mkdir -p /etc/environment.d
echo "|\"/usr/bin/envdir /etc/environment.d /usr/local/bin/email_to_webhook\"" > /root/.forward
2019-03-27 16:06:23 +00:00
echo "now put your webhook url in /etc/environment.d/SLACK_WEBHOOK_URL"