Changeset 2819 for alternc/trunk/src/dns.sh
- Timestamp:
- 01/29/11 16:12:26 (2 years ago)
- File:
-
- 1 edited
-
alternc/trunk/src/dns.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
alternc/trunk/src/dns.sh
r2814 r2819 94 94 file=$( 95 95 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';"|sort96 $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 ;" 97 97 ) 98 98 99 99 100 100 # 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;") 102 102 103 103 # Replace the vars by their values
Note: See TracChangeset
for help on using the changeset viewer.
