scripting/samba_upgradedns: Only look for IPv4/IPv6 addresses if we actually them
authorAndrew Bartlett <abartlet@samba.org>
Thu, 27 Dec 2012 23:05:40 +0000 (10:05 +1100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 2 Apr 2013 19:07:40 +0000 (21:07 +0200)
commit12907e7f7f1d9fda4dc33da87849ac86a234c9a8
tree47352eff199167290c6985e264441e7b73b5ad4f
parentbf68cd42178dd6cc7bea2cb381dcf53f3c7c27a4
scripting/samba_upgradedns: Only look for IPv4/IPv6 addresses if we actually them

This allows the script to be used to create/remove the samba-specific dns-SERVER account
when we do not need to create the in-directory partition.

Andrew Bartlett

Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jan 10 20:56:50 CET 2013 on sn-devel-104
(cherry picked from commit edbc26bca84ee77b5a9571ba8dc9416c0db25906)

Fix bug #9721 - samba_upgradedns patch for robustness (do not guess addresses
when just changing roles).
source4/scripting/bin/samba_upgradedns