summaryrefslogtreecommitdiff
path: root/src/transitions/0.28
blob: 5da6ab13f2c37487b549c93825b1352065ff505e (plain)
  1. #!/bin/bash
  2. # This is a post-install script for monkeysphere, to transition an old
  3. # (<0.28) setup to the new (>=0.28) setup.
  4. # You should be able to run this script after any version >= 0.23 is
  5. # installed. This script should be well-behaved, even if it is run
  6. # repeatedly.
  7. # Written by
  8. # Jameson Rollins <jrollins@finestructure.net>
  9. # Daniel Kahn Gillmor <dkg@fifthhorseman.net>
  10. #
  11. # Copyright 2010, released under the GPL, version 3 or later
  12. # any unexpected errors should cause this script to bail:
  13. set -e
  14. SYSDATADIR=${MONKEYSPHERE_SYSDATADIR:-"/var/lib/monkeysphere"}
  15. OLD_HOST_KEY_FILE="$SYSDATADIR"/ssh_host_rsa_key.pub.gpg
  16. if [ -f "$OLD_HOST_KEY_FILE" ] ; then
  17. monkeysphere-host update-pgp-pub-file
  18. rm -f "$OLD_HOST_KEY_FILE"
  19. fi