Ignore:
Timestamp:
01/29/11 16:12:26 (2 years ago)
Author:
fufroma
Message:

Conf web : CREATION ok

File:
1 edited

Legend:

Unmodified
Added
Removed
  • alternc/trunk/src/dns.sh

    r2814 r2819  
    9494    file=$( 
    9595        echo -e "$file" 
    96         $MYSQL_DO "select replace(replace(dt.entry,'%TARGET%',sd.valeur), '%SUB%', if(length(sd.sub)>0,sd.sub,'@')) from sub_domaines sd,domaines_type dt where sd.type=dt.name and sd.domaine='$domain';"|sort 
     96        $MYSQL_DO "select distinct replace(replace(dt.entry,'%TARGET%',sd.valeur), '%SUB%', if(length(sd.sub)>0,sd.sub,'@')) as entry from sub_domaines sd,domaines_type dt where sd.type=dt.name and sd.domaine='$domain' order by entry ;" 
    9797    ) 
    9898 
    9999 
    100100    # Get some usefull vars 
    101     local mx=$( $MYSQL_DO "select mx from domaines where domaine='$domain';") 
     101    local mx=$( $MYSQL_DO "select mx from domaines where domaine='$domain' limit 1;") 
    102102 
    103103    # Replace the vars by their values 
Note: See TracChangeset for help on using the changeset viewer.