root/alternc-slavedns/tags/debian_version_0_9_3_1/debian/postinst

Revision 1322, 1.0 kB (checked in by root, 4 years ago)

- pour que lintian arrete de raler :

  • ajout de confmodule dans postinst
  • conversion de control en utf-8
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 #!/bin/sh -e
2
3 . /usr/share/debconf/confmodule
4
5
6 case "$1" in
7     configure)
8
9     touch /etc/bind/slavedns.conf
10     # Configure alternc-slavedns (if an alternc is installed on this server ...)
11     if [ -f /usr/share/alternc/install/etc/bind/named.conf ]
12         then
13        
14         if grep -q "include \"/etc/bind/slavedns.conf\";" /usr/share/alternc/install/etc/bind/named.conf
15             then
16             echo "Named for AlternC already configured ..."
17         else
18             echo "include \"/etc/bind/slavedns.conf\";" >>/usr/share/alternc/install/etc/bind/named.conf
19         fi
20     fi
21     # Configuring bind
22     if grep -q "include \"/etc/bind/slavedns.conf\";" /etc/bind/named.conf
23         then
24         echo "Named already configured ..."
25     else
26         echo "include \"/etc/bind/slavedns.conf\";" >>/etc/bind/named.conf
27         # Reloading bind :
28         if [ -e "/etc/init.d/bind" ]
29             then
30             /etc/init.d/bind reload
31         fi
32         if [ -e "/etc/init.d/bind9" ]
33             then
34             /etc/init.d/bind9 reload
35         fi
36     fi
37    
38 esac
39
40 # dh_installdeb will replace this with shell code automatically
41 # generated by other debhelper scripts.
42
43 #DEBHELPER#
44
45 exit 0
Note: See TracBrowser for help on using the browser.