X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=packaging%2Fdebian%2Fmonkeysphere.postinst;h=4e811672cb7237ec9508c50a81819a863763c121;hb=15ead824349741712fb99fe0156c3fbf4e87c7a3;hp=bbb02cfd0c658300057d5c94b89c9a8e8575fa00;hpb=6a8ca11c71b55becac131b58caa27e8d69696587;p=monkeysphere.git diff --git a/packaging/debian/monkeysphere.postinst b/packaging/debian/monkeysphere.postinst index bbb02cf..4e81167 100755 --- a/packaging/debian/monkeysphere.postinst +++ b/packaging/debian/monkeysphere.postinst @@ -1,10 +1,12 @@ -#!/bin/sh -e +#!/bin/sh # postinst script for monkeysphere # Author: Jameson Rollins # Copyright 2008-2009 +set -e + VARLIB="/var/lib/monkeysphere" case $1 in @@ -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 ; 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