[PATCH] Suppress alert on unavailable port with forced setup
Jeroen van Meeuwen (Kolab Systems)
vanmeeuwen at kolabsys.com
Sat Apr 21 13:15:57 UTC 2012
---
ldap/admin/src/scripts/DSDialogs.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ldap/admin/src/scripts/DSDialogs.pm b/ldap/admin/src/scripts/DSDialogs.pm
index 60bc115..08c8b2b 100644
--- a/ldap/admin/src/scripts/DSDialogs.pm
+++ b/ldap/admin/src/scripts/DSDialogs.pm
@@ -66,7 +66,7 @@ my $dsport = new Dialog (
my $res = $DialogManager::SAME;
if ($ans !~ /^\d+$/) {
$self->{manager}->alert("dialog_dsport_invalid", $ans);
- } elsif (!portAvailable($ans)) {
+ } elsif (!portAvailable($ans) && !$self->{manager}->{setup}->{force}) {
$self->{manager}->alert("dialog_dsport_error", $ans);
} else {
$res = $DialogManager::NEXT;
--
1.7.7.6
--nextPart4129636.AbSCBFlke6--
--nextPart2943319.xX4S1HVROA
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
iEYEABECAAYFAk+Ss6QACgkQKN6f2pNCvwifsQCfWcb7N/crdrLtDy73p3ENcOMQ
Z34AnR2f6RUhoOBTR+B9B6wGiv3uWF2v
=9xLh
-----END PGP SIGNATURE-----
--nextPart2943319.xX4S1HVROA--
More information about the 389-devel
mailing list