Changeset 509
- Timestamp:
- 05/11/08 08:24:16 (3 months ago)
- Files:
-
- cdd-utils/trunk/debian/changelog (modified) (1 diff)
- cdd-utils/trunk/lib/common.sh (modified) (2 diffs)
- cdd-utils/trunk/lib/server.sh (modified) (2 diffs)
- cdd-utils/trunk/lib/suites.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cdd-utils/trunk/debian/changelog
r507 r509 6 6 * Code cleanup 7 7 * Idempotent ldap, nfs, monit and apt scripts 8 * Instruct dhclient to send host-name 8 9 9 10 -- Free Ekanayaka <free@64studio.com> Thu, 08 May 2008 21:55:32 +0200 cdd-utils/trunk/lib/common.sh
r505 r509 19 19 sep="$2" 20 20 cfg="$3" 21 if ! grep -q ^$key $cfg; then22 echo "${key}${2}" >> $cfg21 if ! grep -q "^$key" "$cfg"; then 22 echo "${key}${2}" >> "$cfg" 23 23 fi 24 24 } … … 28 28 val="$3" 29 29 cfg="$4" 30 if ! grep -q ^$key $cfg; then30 if ! grep -q "^$key" "$cfg"; then 31 31 warning "key $key not found in $cfg" 32 32 return cdd-utils/trunk/lib/server.sh
r506 r509 1 1 2 # LDAP Address book and users 2 3 ldap () { … … 347 348 348 349 } 350 351 # Instruct dhclient to sent the hostname of the machine, so that dnsmasq 352 # can add it to the DNS zone 353 dhclient () { 354 cfg=/etc/dhcp3/dhclient.conf 355 if ! exists $cfg; then warning $cfg not found; return; fi 356 del_key "send host-name" "$cfg" 357 add_key "send host-name" " " "$cfg" 358 set_key "send host-name" " " "$(hostname)" "$cfg" 359 touch /etc/resolv.conf 360 } cdd-utils/trunk/lib/suites.sh
r506 r509 3 3 cdd-config ldap client 4 4 cdd-config nfs client 5 cdd-config dhclient 5 6 } 6 7
