Is CFG_TEMPLATE used before it's getting defined? -if [ "$1" = "configure" ] && [ -f /etc/maradns/mararc ] +if [ "$1" = "configure" ] && [ -f $CFG_TEMPLATE ] then - [old code] + CFG_TEMPLATE=/usr/share/maradns/mararc + [new ucf code] fi Andreas