3 # postinst script for monkeysphere
5 # Author: Jameson Rollins <jrollins@finestructure.net>
10 VARLIB="/var/lib/monkeysphere"
14 # add a monkeysphere user if one does not already exist
15 if ! getent passwd monkeysphere >/dev/null ; then
16 echo "adding monkeysphere user..."
17 adduser --quiet --system --no-create-home --group \
20 --gecos 'monkeysphere authentication user,,,' \
24 # try all available transitions:
25 for trans in 0.23 ; do
26 /usr/share/monkeysphere/transitions/$trans || { \
28 echo "Failed running transition script /usr/share/monkeysphere/transitions/$trans" >&2
34 # setup monkeysphere authentication
35 monkeysphere-authentication setup
39 # dh_installdeb will replace this with shell code automatically
40 # generated by other debhelper scripts.