Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > d1a581e3ae69662041488de84fe73f92 > files > 17

monkeysphere-0.35-3.fc14.noarch.rpm

#!/bin/bash

# This is a post-install script for monkeysphere, to transition an old
# (<0.28) setup to the new (>=0.28) setup.

# You should be able to run this script after any version >= 0.23 is
# installed.  This script should be well-behaved, even if it is run
# repeatedly.

# Written by
# Jameson Rollins <jrollins@finestructure.net>
# Daniel Kahn Gillmor <dkg@fifthhorseman.net>
#
# Copyright 2010, released under the GPL, version 3 or later

# any unexpected errors should cause this script to bail:
set -e

SYSSHAREDIR=${MONKEYSPHERE_SYSSHAREDIR:-"__SYSSHAREDIR_PREFIX__/share/monkeysphere"}
export SYSSHAREDIR
. "${SYSSHAREDIR}/defaultenv"


OLD_HOST_KEY_FILE="$SYSDATADIR"/ssh_host_rsa_key.pub.gpg
if [ -f "$OLD_HOST_KEY_FILE" ] ; then
    monkeysphere-host update-pgp-pub-file
    rm -f "$OLD_HOST_KEY_FILE"
fi