This is the first post to this example blog. To add new posts, just add files to the blog/posts/ subdirectory, or use the web form. [[!tag tags/tech]] heet' type='text/css' href='/cgit-local/local.css'/>
summaryrefslogtreecommitdiff
path: root/src/monkeysphere-authentication
blob: 99b818dc0b549651399d28247ae14b4ab859cf6b (plain)
  1. #!/usr/bin/env bash
  2. # monkeysphere-authentication: Monkeysphere authentication admin tool
  3. #
  4. # The monkeysphere scripts are written by:
  5. # Jameson Rollins <jrollins@finestructure.net>
  6. # Jamie McClelland <jm@mayfirst.org>
  7. # Daniel Kahn Gillmor <dkg@fifthhorseman.net>
  8. # Micah Anderson <micah@riseup.net>
  9. #
  10. # They are Copyright 2008-2009, and are all released under the GPL,
  11. # version 3 or later.
  12. ########################################################################
  13. set -e
  14. # set the pipefail option so pipelines fail on first command failure
  15. set -o pipefail
  16. PGRM=$(basename $0)
  17. SYSSHAREDIR=${MONKEYSPHERE_SYSSHAREDIR:-"__SYSSHAREDIR_PREFIX__/share/monkeysphere"}
  18. export SYSSHAREDIR
  19. . "${SYSSHAREDIR}/defaultenv"
  20. . "${SYSSHAREDIR}/common"
  21. # sharedir for authentication functions
  22. MASHAREDIR="${SYSSHAREDIR}/ma"
  23. # datadir for authentication functions
  24. MADATADIR="${SYSDATADIR}/authentication"
  25. # temp directory to enable atomic moves of authorized_keys files
  26. MATMPDIR="${MADATADIR}/tmp"
  27. export MATMPDIR
  28. # UTC date in ISO 8601 format if needed
  29. DATE=$(date -u '+%FT%T')