blob: 99b818dc0b549651399d28247ae14b4ab859cf6b (
plain)
- #!/usr/bin/env bash
- # monkeysphere-authentication: Monkeysphere authentication admin tool
- #
- # The monkeysphere scripts are written by:
- # Jameson Rollins <jrollins@finestructure.net>
- # Jamie McClelland <jm@mayfirst.org>
- # Daniel Kahn Gillmor <dkg@fifthhorseman.net>
- # Micah Anderson <micah@riseup.net>
- #
- # They are Copyright 2008-2009, and are all released under the GPL,
- # version 3 or later.
- ########################################################################
- set -e
- # set the pipefail option so pipelines fail on first command failure
- set -o pipefail
- PGRM=$(basename $0)
- SYSSHAREDIR=${MONKEYSPHERE_SYSSHAREDIR:-"__SYSSHAREDIR_PREFIX__/share/monkeysphere"}
- export SYSSHAREDIR
- . "${SYSSHAREDIR}/defaultenv"
- . "${SYSSHAREDIR}/common"
- # sharedir for authentication functions
- MASHAREDIR="${SYSSHAREDIR}/ma"
- # datadir for authentication functions
- MADATADIR="${SYSDATADIR}/authentication"
- # temp directory to enable atomic moves of authorized_keys files
- MATMPDIR="${MADATADIR}/tmp"
- export MATMPDIR
- # UTC date in ISO 8601 format if needed
- DATE=$(date -u '+%FT%T')
|