Changeset 488


Ignore:
Timestamp:
02/22/06 00:23:23 (7 years ago)
Author:
anarcat
Message:

[project @ alternc: changeset 2005-01-18 19:57:18 by anarcat]
write ns1, ns2, fqdn and hosting variables in alternc.conf

Original author: anarcat
Date: 2005-01-18 19:57:18

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/postinst

    r487 r488  
    7070    done 
    7171 
    72     # ?? 
    73     #db_get alternc/desktopname 
    74     #db_get alternc/hostingname 
    75     #db_get alternc/ns1 
    76     #db_get alternc/ns2 
    77  
    7872    if [ -e /etc/alternc/local.sh ]; then 
    7973      # source local.sh variables 
     
    9286    change_var "myip" "$DEFAULT_IP" 
    9387 
     88    for pair in \ 
     89    "alternc/desktopname fqdn" \ 
     90    "alternc/hostingname hosting" \ 
     91    "alternc/ns1 ns1" \ 
     92    "alternc/ns2 ns2" 
     93    do 
     94      skip=0 
     95      for single in $pair 
     96      do 
     97        if [ "$skip" = "0" ]; then 
     98          var="$single" 
     99          skip=1 
     100        else 
     101          db_get "$var" 
     102          change_var "$single" "$RET" 
     103        fi 
     104      done 
     105    done 
     106 
    94107    echo "The following variables have been left untouched in alternc.conf" 
    95108    echo "You will have to review those before manually launching alternc.install" 
     
    98111    # variables not treated here (debconf variable) 
    99112    # monitor_ip 
    100     # fqdn (desktopname) 
    101     # hosting (hostingname) 
    102113    # bind_internal 
    103     # ns1, ns2 (idem) 
    104114    # dnsip 
    105115    # myrandom 
Note: See TracChangeset for help on using the changeset viewer.