@Version 6.50 @SyntaxVersion 1.03 ; ; CONVERT.IPS ** ; Main file opened by NWCONFIG ;******************************************************************************* ; File set work ;******************************************************************************* ; All CopyFile commands are relative to the ROOT directory of the CDROM. CopyToServer SYSTEM, ICMD.NLM, '', '' Command ICMD ;----------------------------------------------------------------------------- ;Set Global Variables ;----------------------------------------------------------------------------- SetVar true, 1 SetVar false, 0 SetVar done, %{false} SetVar itemSelected, %{false} SetVar installSelected, %{false} Label STILL_GOING ;----------------------------------------------------------------------------- ; Get Path variables ;----------------------------------------------------------------------------- GetPath nwserv, 1, 'c:\\nwserver', '' GetPath dosroot, 1, 'c:\\', '' GetPath autoexecDir, 1, 'SYS:SYSTEM', '' GetPath sys, 1, 'SYS:\\', '' GetPath c1, 1, 'sys:public\\mgmt', '' GetPath c1s, 1, '%{NWSRC}\\mgmt', '' GetPath admserv, 1, 'SYS:ADMINSRV\\CONF', '' GetPath ap2, 1, 'SYS:APACHE2\\CONF', '' GetPath tc4, 1, 'SYS:TOMCAT', '' GetPath nps, 1, 'SYS:TOMCAT\\4\\WEBAPPS\\NPS\\WEB-INF', '' ;----------------------------------------------------------------------------- ; Setup the Language variables ;----------------------------------------------------------------------------- SetVar LANG, %{NWLANG} @IncludeFile File: 'SETLANG.ICS' @EndIncludeFile Menu do_it, "Convert this Branch Office to NW65?",2,0, "Please, do!", 1, "No, Thank you.", 0 GotoIfEqual %{do_it}, 0, WERE_OUT ;----------------------------------------------------------------------------- ; Main install ;----------------------------------------------------------------------------- @Include File: '\\INSTALL\\NBO2NW.ICS' @EndInclude ;----------------------------------------------------------------------------- ; Remove NBO related Files and replace SERVER.EXE ;----------------------------------------------------------------------------- @Fileset Description: "Replacing NBO Specific Files" Name: CUSTOM Class: MANDATORY Bytes: 2000000 ;----- If Done = true then exit ----- GotoIfEqual %{done}, %{true},NO_CUSTOM_SCRIPT Display 2, " Copying Core files and removing NBO related files" CopyFile 0,0,1,2,0,NWSRC,'server.exe','','',nwserv,'','','' CopyFile 0,0,1,2,0,NWSRC,'autoexec.bat','','',dosroot,'','','' EraseFile 0,NWBOOT,'stage.*','','' EraseFile 0,NWBOOT,'instauto.*','','' EraseFile 0,NWBOOT,'servcfg.*','','' Config 1 AppendFile NWSRC, 'INSTALL\\MISC\\autoadd.ncf','','',autoexecDir,'autoexec.ncf','','' ; Copy the configuration files for Apache2, Adminserv and Tomcat. Display 2, "\nCopying Tomcat, Adminserv and Apache2 config files ..." CopyFile 0,0,1,2,10000,NWSRC,'INSTALL\\MISC\\adminserv.conf','','',admserv,'','','' CopyFile 0,0,1,2,10000,NWSRC,'INSTALL\\MISC\\admin_tomcat.xml','','',admserv,'','','' CopyFile 0,0,1,2,10000,NWSRC,'INSTALL\\MISC\\workers.properties','','',admserv,'mod_jk\\','','' CopyFile 0,0,1,2,10000,NWSRC,'INSTALL\\MISC\\httpd.conf','','',sys,'apache2\\conf\\','','' CopyFile 0,0,1,2,10000,NWSRC,'INSTALL\\MISC\\startup.properties','','',sys,'apache2\\conf\\daemon\\','','' CopyFile 0,0,1,2,10000,NWSRC,'INSTALL\\MISC\\tc4jpda.ncf','','',tc4,'4\\bin\\','','' CopyFile 0,0,1,2,10000,NWSRC,'INSTALL\\MISC\\server.xml','','',tc4,'4\\conf\\','','' CopyFile 0,0,1,2,10000,NWSRC,'INSTALL\\MISC\\web.xml','','',tc4,'4\\conf\\','','' CopyFile 0,0,1,2,10000,NWSRC,'INSTALL\\MISC\\portalservlet.properties','','',nps,'','','' CopyFile 0,0,1,2,10000,NWSRC,'tc4keyst.exe','','',sys,'','','' Display 0, "NBO to Standard NetWare 6.5 conversion file installation is complete!" Display 0, "You must edit the files listed in POST.TXT \nto reflect the Server's IP Address and/or Server Name." Label NO_CUSTOM_SCRIPT @EndFileset ;----------------------------------------------------------------------------- ; Reboot the server for changes to take effect ;----------------------------------------------------------------------------- Label Reboot Menu rebootme, "Server Needs to be reset. Continue?",2,0, "Reboot Server Now", 1, "Don't Reboot Server", 0 GotoIfEqual %{rebootme}, 0, WERE_OUT Display 2, "Server is now being Restarted..." Console 'stopx',10 Console 'java -exit',3 ; Send broadcast to all connected, the server is being restarted. Console 'SEND "%{NWSERVER} - Server is now being Restarted..."',10 Console 'reset server', 5 Label WERE_OUT ; *** End convert.ips ***