]> git.netwichtig.de Git - user/henk/code/shell/rif.git/blob - rif-exportfriends.sh
Update all files to use RI6F instead of RIF
[user/henk/code/shell/rif.git] / rif-exportfriends.sh
1 #!/bin/sh
2 # 2019-09-10, Nico Schottelius, Seoul
3
4 if [ $# -ne 1 ]; then
5     echo "$0: <webserver directory>"
6     echo 'Export your friends to the web!'
7     exit 1
8 fi
9
10 dir=$1; shift
11 keys="$dir/rifkeys"
12
13 gpg -a --export RI6F > "$keys"
14
15 # Ensure everyone can read them
16 chmod 0644 "$keys"