#!/bin/sh

set -e

. /usr/share/debconf/confmodule

if [ -f /etc/popularity-contest.conf ] ; then
       . /etc/popularity-contest.conf
       if [ yes = "$PARTICIPATE" ] ; then
               PARTICIPATE=true
       else
               PARTICIPATE=false
       fi
       db_set popularity-contest/participate "$PARTICIPATE"
fi

db_input high popularity-contest/participate || [ $? -eq 30 ]
db_go || true
