X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=packaging%2Fdebian%2Fmonkeysphere.postinst;h=8c6a555d2de8b52430a28cb87dceabaf087b269e;hb=f9da5934c0976783b88f61504bb27a5fd29d8e3e;hp=bbb02cfd0c658300057d5c94b89c9a8e8575fa00;hpb=54abd85dc6b4c54a99644eec21ce51635012ea8b;p=monkeysphere.git diff --git a/packaging/debian/monkeysphere.postinst b/packaging/debian/monkeysphere.postinst index bbb02cf..8c6a555 100755 --- a/packaging/debian/monkeysphere.postinst +++ b/packaging/debian/monkeysphere.postinst @@ -1,9 +1,11 @@ -#!/bin/sh -e +#!/bin/sh # postinst script for monkeysphere # Author: Jameson Rollins -# Copyright 2008-2009 +# Copyright 2008-2010 + +set -e VARLIB="/var/lib/monkeysphere" @@ -19,8 +21,15 @@ case $1 in monkeysphere fi - # try to transition from to 0.23: - /usr/share/monkeysphere/transitions/0.23 + # try all available transitions: + for trans in 0.23 0.28 ; do + /usr/share/monkeysphere/transitions/$trans || { \ + RET=$? + echo "Failed running transition script /usr/share/monkeysphere/transitions/$trans" >&2 + exit $RET + } + done + # setup monkeysphere authentication monkeysphere-authentication setup