File: postinst

package info (click to toggle)
mailgraph 1.14-1.2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 248 kB
  • ctags: 25
  • sloc: perl: 995; sh: 180; makefile: 54
file content (20 lines) | stat: -rw-r--r-- 939 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
if [ ! -f /etc/default/mailgraph ]; then
  . /usr/share/debconf/confmodule
  db_get mailgraph/start_on_boot
  echo "BOOT_START=$RET" > /etc/default/mailgraph
  db_get mailgraph/mail_log
  echo "MAIL_LOG=$RET" >> /etc/default/mailgraph
  db_get mailgraph/ignore_localhost
  if [ "$RET" = "true" ] ; then
    echo "IGNORE_LOCALHOST=false" >> /etc/default/mailgraph
  else
    echo "IGNORE_LOCALHOST=true" >> /etc/default/mailgraph
  fi
fi
if [ ! -d /var/lib/mailgraph ]; then                                                                                                                         
  mkdir /var/lib/mailgraph                                                                                                                                 
  chown www-data:www-data /var/lib/mailgraph                                                                                                               
fi
#DEBHELPER#
exit 0