summaryrefslogtreecommitdiff
path: root/debian/postinst
blob: d17f37142661dce136ad57964436c85da981a7ac (plain)
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