Changeset 8036 for 2.0


Ignore:
Timestamp:
May 25, 2010, 5:58:56 PM (15 years ago)
Author:
rick
Message:

Make me more robust and fix all kind of quote hells

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2.0/nanobsd/nanobsd/files/usr/local/etc/rc.d/maradns

    r8003 r8036  
    1818# Nastly hack to allow the MaraDNS bind to the proper variable IP address
    1919mara_pre() {
    20   IP=`ifconfig ${internalif} | grep 'inet' | awk '{ print $2 }' | sed 's/\./\\\./g'`
    21   sed -i .orig "s/^ipv4_bind_addresses=.*/ipv4_bind_addresses=\"$IP, 127.0.0.1\"/" /usr/local/etc/mararc
     20  IP=`ifconfig ${internalif} | awk '/inet/ { print $2 }'`
     21  sed -i .orig 's/^\(ipv4_bind_addresses[\ \t=]*"\).*$/\1'${IP}' 127.0.0.1"/g' ${maradns_conf}
    2222}
    2323
Note: See TracChangeset for help on using the changeset viewer.