From ebb12157ce060b27c2740e9bef241ce4a74aff70 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Sun, 1 Feb 2009 01:58:02 -0500 Subject: add m-a setup implementation --- src/share/ma/setup | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 src/share/ma/setup (limited to 'src/share/ma/setup') diff --git a/src/share/ma/setup b/src/share/ma/setup new file mode 100644 index 0000000..a829a98 --- /dev/null +++ b/src/share/ma/setup @@ -0,0 +1,88 @@ +# -*-shell-script-*- +# This should be sourced by bash (though we welcome changes to make it POSIX sh compliant) + +# Monkeysphere authentication setup subcommand +# +# The monkeysphere scripts are written by: +# Jameson Rollins +# Jamie McClelland +# Daniel Kahn Gillmor +# +# They are Copyright 2009, and are all released under the GPL, +# version 3 or later. + +setup() { + # make the core and the sphere: + mkdir -p ${SYSDATADIR}/authentication + mkdir -p ${GNUPGHOME_SPHERE} + mkdir -p ${GNUPGHOME_CORE} + + # deliberately replace the config files via truncation + # FIXME: should we be dumping to tmp files and then moving atomically? + cat >${GNUPGHOME_CORE}/gpg.conf <${GNUPGHOME_SPHERE}/gpg.conf <