Changeset 1672

Show
Ignore:
Timestamp:
06/23/06 06:05:39 (2 years ago)
Author:
anarcat
Message:

change proper ip even if modifying TLD, closes: #661

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/src/update_domains.sh

    r1671 r1672  
    236236    delete_host "$domain" "$host" 
    237237 
     238    if [ "$host_type" = "$TYPE_IP" ]; then 
     239       ip="$value" 
     240    else 
     241       ip="$PUBLIC_IP" 
     242    fi 
    238243    if [ "$host" = "@" -o -z "$host" ]; then 
    239         change_host_ip "$domain" "$PUBLIC_IP" || true 
     244        change_host_ip "$domain" "$ip" || true 
    240245        fqdn="$domain" 
    241246    else 
    242         if [ "$host_type" = "$TYPE_IP" ]; then 
    243             ip="$value" 
    244         else 
    245             ip="$PUBLIC_IP" 
    246         fi 
    247247        change_host_ip "$domain" "$ip" "$host" || true 
    248248        fqdn="${host}.${domain}"