#!/bin/sh -e case "$1" in configure) openssl genrsa -out /etc/csync2_ssl_key.pem 1024 yes '' | openssl req -new -key /etc/csync2_ssl_key.pem -out /etc/csync2_ssl_cert.csr openssl x509 -req -days 600 -in /etc/csync2_ssl_cert.csr -signkey /etc/csync2_ssl_key.pem -out /etc/csync2_ssl_cert.pem if [ ! -e /etc/lliurex-cap/lliurex-cap.cfg ] ; then [ -d /etc/lliurex-cap ] || mkdir /etc/lliurex-cap cp /usr/share/lliurex-cap/etc/lliurex-cap/lliurex-cap.cfg /etc/lliurex-cap/lliurex-cap.cfg fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0