#!/bin/bash -e conf=/etc/conserver/console.cf if [ "$1" = "configure" -a -e /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule if [ ! -e $conf ]; then cp /usr/share/conserver-client/console.cf $conf fi db_get conserver-client/config if [ "$RET" = "true" ]; then touch $conf db_get conserver-client/server perl -pi -e "s/master(\s+)([^;]+);/master\${1}$RET;/" $conf db_get conserver-client/port perl -pi -e "s/port(\s+)([^;]+);/port\${1}$RET;/" $conf fi fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts.