From: Daniel Kahn Gillmor Date: Sun, 1 Feb 2009 06:58:02 +0000 (-0500) Subject: add m-a setup implementation X-Git-Tag: monkeysphere_0.23~148 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=ebb12157ce060b27c2740e9bef241ce4a74aff70;p=monkeysphere.git add m-a setup implementation --- 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 <