#!/bin/sh -e set -e . /usr/share/debconf/confmodule ############################################## # The debconf routine for creating $CONFIGFILE generate_config() { cat < "$TMPFILE" 2>&1 # Use ucf to move it into place while preserving user changes if [ -f "$CONFIGFILE" ] && [ -f "$SUMFILE" ]; then /usr/bin/ucf --debconf-ok --sum-file "$SUMFILE" "$TMPFILE" "$CONFIGFILE" else if [ -s "$TMPFILE" ]; then cp "$TMPFILE" "$CONFIGFILE" if [ -f "$SUMFILE" ]; then /usr/bin/ucf --debconf-ok --sum-file "$SUMFILE" "$TMPFILE" "$CONFIGFILE" fi fi fi # Clean up and ensure permissions are sane rm -f $TMPFILE if [ -f "$CONFIGFILE" ]; then chown root: $CONFIGFILE chmod 0644 $CONFIGFILE fi #DEBHELPER#