1234567891011121314151617181920212223242526272829303132 |
- #!/bin/sh
- # postinst script for postsrsd
- #
- # see: dh_installdeb(1)
-
- set -e
-
- # summary of how this script can be called:
- # * <postinst> `configure' <most-recently-configured-version>
- # * <old-postinst> `abort-upgrade' <new version>
- # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
- # <new-version>
- # * <postinst> `abort-remove'
- # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
- # <failed-install-package> <version> `removing'
- # <conflicting-package> <version>
- # for details, see http://www.debian.org/doc/debian-policy/ or
- # the debian-policy package
-
-
- if [ "$1" = "configure" -a ! -f /etc/postsrsd.secret ]
- then
- echo "postsrsd: Generating initial /etc/postsrsd.secret" >&2
- ( umask 0077 ; dd if=/dev/urandom bs=18 count=1 | base64 -w0 > /etc/postsrsd.secret )
- fi
-
- # dh_installdeb will replace this with shell code automatically
- # generated by other debhelper scripts.
-
- #DEBHELPER#
-
- exit 0
|