Hi,

I made a patch to support a /globalwpkg switch. It tells wpkg.js to put the
wpkg.xml as wpkg.<hostname>.xml into the global settings directory so the files
can be easily tweaked by an administrator.

Feel free to include it in wpkg.js
*** \\Ovid\install\WPKG\wpkg-0.9.10\wpkg.js     Mon Jul 10 19:47:14 2006
--- \\Ovid\install\WPKG\current\wpkg.js Mon Nov  6 16:35:08 2006
***************
*** 43,48 ****
--- 43,53 ----
   *     of the specified profile. This is the action that should be called at
   *     system boot time for this program to be useful.
   *
+  * /globalwpkg
+  *     Saves the configuration of a host in the base directory with the 
filename
+  *     wpkg.<host>.xml e.g. the wpkg.mypc.xml for a machine named mypc.
+  *     This allows easily to tweak the package database for different hosts.
+  *
   * /quiet
   *     Uses the event log to record all error/status output. Use this when
   *     running unattended.
***************
*** 257,264 ****
  
      // our settings file is located in System32
      var SystemFolder = 1;
!     var settings_folder = fso.GetSpecialFolder(SystemFolder);
!     settings_file = fso.BuildPath(settings_folder, settings_file_name);
  
  
      // load packages and profiles
--- 262,275 ----
  
      // our settings file is located in System32
      var SystemFolder = 1;
!     var settings_folder = base;
!     if (isArgSet(argv, "/globalwpkg")) {      
!       settings_file = fso.BuildPath(settings_folder, "wpkg."+host+".xml");
!     } else
!     {
!       settings_folder = fso.GetSpecialFolder(SystemFolder);
!       settings_file = fso.BuildPath(settings_folder, settings_file_name);
!     }
  
  
      // load packages and profiles
***************
*** 430,435 ****
--- 441,450 ----
      message += "/synchronize\n";
      message += "    Synchronizes the current program state with the suggested 
program state\n";
      message += "    of the specified profile.\n";
+     message += "\n";
+     message += "/globalwpkg\n";
+     message += "    Saves the configuration of a host in the base directory 
with the filename\n";
+     message += "    wpkg.<host>.xml\n";     
      message += "\n";
      message += "/quiet\n";
      message += "    Uses the event log to record all error/status output. Use 
this when\n";
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
wpkg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wpkg-users

Reply via email to