Changeset 1924

Show
Ignore:
Timestamp:
09/09/07 20:58:07 (8 months ago)
Author:
benjamin
Message:

adding the case when using alternc-slavedns on a machine using alternc Closes #1040

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc-slavedns/trunk/debian/changelog

    r1690 r1924  
     1alternc-slavedns (0.9.5) testing; urgency=low 
     2 
     3  * Adding the case when alternc-slavedns is installed on a machine having alternc >=0.9.3 installed. (#1040) 
     4 
     5 -- Benjamin Sonntag <benjamin@alternc.org>  Sun, 9 Sep 2007 20:56:00 +0200 
     6 
    17alternc-slavedns (0.9.4) stable; urgency=low 
    28 
  • alternc-slavedns/trunk/debian/postinst

    r1686 r1924  
    1111    if [ -f /usr/share/alternc/install/etc/bind/named.conf ] 
    1212        then 
    13          
    1413        if grep -q "include \"/etc/bind/slavedns.conf\";" /usr/share/alternc/install/etc/bind/named.conf 
    1514            then 
     
    1716        else 
    1817            echo "include \"/etc/bind/slavedns.conf\";" >>/usr/share/alternc/install/etc/bind/named.conf 
     18        fi 
     19    fi 
     20    # AlternC 0.9.3 & later versions use another file :  
     21    if [ -f /etc/alternc/templates/bind/named.conf ] 
     22        then 
     23        if grep -q "include \"/etc/bind/slavedns.conf\";" /etc/alternc/templates/bind/named.conf 
     24            then 
     25            echo "Named for AlternC already configured ..." 
     26        else 
     27            echo "include \"/etc/bind/slavedns.conf\";" >>/etc/alternc/templates/bind/named.conf 
    1928        fi 
    2029    fi 
     
    2938        invoke-rc.d --quiet bind9 reload 
    3039    fi 
    31      
    3240esac 
    3341