summaryrefslogtreecommitdiff
path: root/rif-exportfriends.sh
diff options
context:
space:
mode:
authorNico Schottelius <nico@nico-notebook.schottelius.org>2019-09-10 02:12:31 +0900
committerNico Schottelius <nico@nico-notebook.schottelius.org>2019-09-10 02:12:31 +0900
commitde5564a4c64dfd223ef069ce1ff08c429ab0553a (patch)
tree58d1285ec301dc1300fcfc050840a7d5e7af4667 /rif-exportfriends.sh
parent5e7312aca321c8fee753f0734144923f1d8f55ad (diff)
Also export friends
Diffstat (limited to 'rif-exportfriends.sh')
-rwxr-xr-xrif-exportfriends.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/rif-exportfriends.sh b/rif-exportfriends.sh
new file mode 100755
index 0000000..0014a8b
--- /dev/null
+++ b/rif-exportfriends.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+# 2019-09-10, Nico Schottelius, Seoul
+
+if [ $# -ne 1 ]; then
+ echo "$0: <webserver directory>"
+ echo 'Export your friends to the web!'
+ exit 1
+fi
+
+dir=$1; shift
+keys="$dir/rifkeys"
+
+gpg -a --export RIF > "$keys"
+
+# Ensure everyone can read them
+chmod 0644 "$keys"