Changeset 1671

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

ne plus créer les sous-domaines par défaut a la creation d'un domaine dans update_domaines, m_dom.php:add_domain() s'en charge déjà. Closes: #719

Files:

Legend:

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

    r1648 r1671  
    236236    delete_host "$domain" "$host" 
    237237 
    238     if [ "$host" = "@" ]; then 
     238    if [ "$host" = "@" -o -z "$host" ]; then 
    239239        change_host_ip "$domain" "$PUBLIC_IP" || true 
    240240        fqdn="$domain" 
     
    455455    case "$action" in 
    456456      $ACTION_INSERT) 
    457         # default symlinks 
    458         ln -snf "${HTML_HOME}/${USER_LETTER}/$user" \ 
    459                 "${HTTP_DNS}/${DOMAIN_LETTER}/$domain" 
    460         ln -snf "${HTML_HOME}/${USER_LETTER}/$user" \ 
    461                 "${HTTP_DNS}/${DOMAIN_LETTER}/www.$domain" 
    462         ln -snf "${WEBMAIL_DIR}" "${HTTP_DNS}/${DOMAIN_LETTER}/mail.$domain" 
    463                          
    464457        if [ "$are_we_dns" = "$YES" ] ; then 
    465458            init_zone "$domain" 
    466             change_host_ip "$domain" "$PUBLIC_IP" 
    467             change_host_ip "$domain" "$PUBLIC_IP" www 
    468             change_host_ip "$domain" "$PUBLIC_IP" mail 
    469459        fi 
    470460        ;; 
     
    510500    IFS="$OLD_IFS" 
    511501 
    512     if [ "$host" = "@" ]; then 
     502    if [ "$host" = "@" -o -z "$host" ]; then 
    513503        FQDN="$domain" 
    514504    else