|
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 |
|
|---|
| 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 |
|
|---|
| 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 |
|
|---|
| 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 |
|
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 |
exit 0 |
|---|