You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

postinst 979B

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