[Fedora-directory-commits] ldapserver/ldap/admin/src/scripts SetupDialogs.pm.in, 1.3, 1.4 setup-ds.res.in, 1.9, 1.10

Richard Allen Megginson (rmeggins) fedora-directory-commits at redhat.com
Mon Aug 6 18:41:42 UTC 2007


Author: rmeggins

Update of /cvs/dirsec/ldapserver/ldap/admin/src/scripts
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30419/ldapserver/ldap/admin/src/scripts

Modified Files:
	SetupDialogs.pm.in setup-ds.res.in 
Log Message:
Resolves: bug 237356
Description: Move DS Admin Code into Admin Server - dsktune
Fix Description: This adds the dsktune dialog to the initial list of setup dialogs.
Platforms tested: RHEL4



Index: SetupDialogs.pm.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/SetupDialogs.pm.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SetupDialogs.pm.in	27 Jul 2007 01:46:10 -0000	1.3
+++ SetupDialogs.pm.in	6 Aug 2007 18:41:40 -0000	1.4
@@ -78,6 +78,25 @@
     ['dialog_license_prompt']
 );
 
+my $dsktune = new DialogYesNo (
+    $EXPRESS,
+    'dialog_dsktune_text',
+    0,
+    sub {
+        my $self = shift;
+        my $ans = shift;
+        my $res = $self->handleResponse($ans);
+        if ($res == $DialogManager::NEXT) {
+            $res = $DialogManager::ERR if (!$self->isYes());
+        }
+        return $res;
+    },
+    ['dialog_dsktune_prompt']
+);
+
+my $dsktune_output = `@bindir@/dsktune`;
+$dsktune->{text} = [$dsktune->{text}, $dsktune_output];
+
 my $setuptype = new Dialog (
     $EXPRESS,
     'dialog_setuptype_text',
@@ -250,7 +269,7 @@
 
 
 sub getDialogs {
-    return ($welcome, $license, $setuptype, $hostdlg, $usergroup);
+    return ($welcome, $license, $dsktune, $setuptype, $hostdlg, $usergroup);
 }
 
 sub getRegDialogs {


Index: setup-ds.res.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/setup-ds.res.in,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- setup-ds.res.in	27 Jul 2007 01:46:10 -0000	1.9
+++ setup-ds.res.in	6 Aug 2007 18:41:40 -0000	1.10
@@ -17,6 +17,12 @@
 
 dialog_license_prompt = Do you agree to the license terms?
 
+# ----------- dsktune Dialog Resource  -----------
+dialog_dsktune_text = Your system has been scanned for potential problems, missing patches,\
+etc.  The following output is a report of the items found that need to\
+be addressed before running this software in a production\
+environment.\n\n%s
+dialog_dsktune_prompt = Would you like to continue?
 
 # ----------- Setup Type Dialog Resource  ----------------
 dialog_setuptype_text = Choose a setup type:\n\n   1. Express\n       Allows you to quickly setup the servers using the most\n       common options and pre-defined defaults. Useful for quick\n       evaluation of the products.\n\n   2. Typical\n       Allows you to specify common defaults and options.\n\n   3. Custom\n       Allows you to specify more advanced options. This is \n       recommended for experienced server administrators only.\n\nTo accept the default shown in brackets, press the Enter key.\n\n




More information about the Fedora-directory-commits mailing list