File: config

package info (click to toggle)
popularity-contest 1.46
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 468 kB
  • ctags: 67
  • sloc: perl: 916; sh: 242; python: 221; makefile: 41
file content (30 lines) | stat: -rw-r--r-- 745 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

set -e

conffile=/etc/popularity-contest.conf

. /usr/share/debconf/confmodule

if [ -f $conffile ] ; then
       # Make sure the config file have the USEHTTP entry
       if grep -q USEHTTP $conffile; then
           :
       else
           # Make sure existing installations keep using SMTP as
           # before, until the administrator enables HTTP manually.
	   # [pere 2005-07-07]
           echo "USEHTTP=\"no\"" >> $conffile
       fi

       . $conffile
       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