diff options
author | Nico Schottelius <nico@nico-notebook.schottelius.org> | 2019-09-10 02:47:44 +0900 |
---|---|---|
committer | Nico Schottelius <nico@nico-notebook.schottelius.org> | 2019-09-10 02:47:44 +0900 |
commit | a487bac8c20d1d3fdf092d8db64763273396251d (patch) | |
tree | a0717a2f4fa7e864ba99096a19de86a8dc18b325 /rif-invitefriend.sh | |
parent | de0ac87ec579fe23258f547521df9b3810d9bbb2 (diff) |
Add invite friend script
Diffstat (limited to 'rif-invitefriend.sh')
-rwxr-xr-x | rif-invitefriend.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/rif-invitefriend.sh b/rif-invitefriend.sh new file mode 100755 index 0000000..6c63010 --- /dev/null +++ b/rif-invitefriend.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# 2019-09-10, Nico Schottelius, Seoul + +if [ $# -ne 4 ]; then + echo "$0: <friendname> <friendemail> <your URL> <your name>" + echo 'F.i. $0 nico ipv6@nico.ungleich.cloud https://your-url.example.com' + exit 1 +fi + +friend=$1; shift +email=$1; shift +url=$1; shift +name=$1; shift + +keyurl=$url/rifkeys +projecturl=https://code.ungleich.ch/nico/rif + +cat <<EOF | mail -s "Real IPv6 friend request" "${email}" +Hello ${friend}, + +I want to invite you to become my real IPv6 friend. +You can find my friends including my key on ${keyurl}. + +On $projecturl you can find out how to become my friend. + +Looking forward to hearing from you, + +$name +EOF |