Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:tecdoc:abusenotif [2021/03/17 16:18] jomat |
en:tecdoc:abusenotif [2021/07/01 19:15] jomat [User Reg Notifications] |
||
---|---|---|---|
Line 25: | Line 25: | ||
# | # | ||
- | AT=' | + | # access token of @abuse: |
+ | AT=' | ||
+ | # admin room to send notifications to | ||
ROOM=' | ROOM=' | ||
- | IP=$1 | + | # ip of the new user, with gdpr redaction to /24 |
+ | IP=`echo $1|cut -d. -f1-3`.0 | ||
+ | |||
+ | #read stdin | ||
SI=`/ | SI=`/ | ||
- | echo `date` $SI >> / | + | #try to retrieve new user id |
U=`echo $SI|jq -r .user_id` | U=`echo $SI|jq -r .user_id` | ||
Line 35: | Line 40: | ||
[ " | [ " | ||
+ | # send notification | ||
curl -X PUT " | curl -X PUT " | ||
</ | </ | ||
Line 66: | Line 72: | ||
echo date $* >> / | echo date $* >> / | ||
- | |||
# | # |