#!/bin/bash -e # just a workaround if [ -e confmodule ]; then . confmodule else . /usr/share/debconf/confmodule fi CONFFILE=/etc/dibbler/relay.conf PATH=$PATH:. case "$1" in configure) # continue below ;; abort-upgrade|abort-remove|abort-deconfigure) exit 0 ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 0 ;; esac mkdir -f /etc/dibbler &> /dev/null || true db_version 2.0 # Step 1: Do you want dibbler-client to be started? db_get dibbler-relay/start START="$RET" if [ $START == "true" ]; then # Automatically added by dh_installinit/13.2.1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then if [ -x "/etc/init.d/dibbler-relay" ]; then update-rc.d dibbler-relay defaults >/dev/null if [ -n "$2" ]; then _dh_action=restart else _dh_action=start fi invoke-rc.d dibbler-relay $_dh_action || exit 1 fi fi # End automatically added section fi