#!/bin/bash # # PostInst for llxcfg-httpd-ncfg set -e APACHE_CRT="apache.crt" # main case "$1" in configure) rc=0 HTTP_PKI_CRT="$(lliurex-pki -s "$APACHE_CRT")" || rc=$? if [ $rc -eq 0 ] ; then llxcfg-ncfg-server export "$APACHE_CRT" fi ;; abort-upgrade|abort-remove|abort-deconfigure) echo "postinst called with argument \`$1'" >&2 exit 1 ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0