X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=packaging%2Fdebian%2Fmonkeysphere.postinst;h=4e811672cb7237ec9508c50a81819a863763c121;hb=1080589181dd117ef5ab3549e67d206f8a64e834;hp=bbb02cfd0c658300057d5c94b89c9a8e8575fa00;hpb=54abd85dc6b4c54a99644eec21ce51635012ea8b;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