From: Daniel Kahn Gillmor Date: Mon, 2 Mar 2009 22:49:53 +0000 (-0500) Subject: clearer error reporting for transition scripts in postinst. X-Git-Tag: monkeysphere_0.24~10 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=0ae1b83bf02bdec7b26e87e16a393b007941f871;p=monkeysphere.git clearer error reporting for transition scripts in postinst. --- diff --git a/packaging/debian/monkeysphere.postinst b/packaging/debian/monkeysphere.postinst index 6b12ee8..4e81167 100755 --- a/packaging/debian/monkeysphere.postinst +++ b/packaging/debian/monkeysphere.postinst @@ -21,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