projects
/
monkeysphere.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
switch to using new checkperms script.
[monkeysphere.git]
/
packaging
/
debian
/
monkeysphere.postinst
diff --git
a/packaging/debian/monkeysphere.postinst
b/packaging/debian/monkeysphere.postinst
index bbb02cfd0c658300057d5c94b89c9a8e8575fa00..4e811672cb7237ec9508c50a81819a863763c121 100755
(executable)
--- 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 <jrollins@finestructure.net>
# Copyright 2008-2009
# postinst script for monkeysphere
# Author: Jameson Rollins <jrollins@finestructure.net>
# Copyright 2008-2009
+set -e
+
VARLIB="/var/lib/monkeysphere"
case $1 in
VARLIB="/var/lib/monkeysphere"
case $1 in
@@
-19,8
+21,15
@@
case $1 in
monkeysphere
fi
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
# setup monkeysphere authentication
monkeysphere-authentication setup