Metropoli BBS
VIEWER: ldap103a.ips MODE: TEXT (ASCII)
;*******************************************************************
; Install Script for the LDAP Services for NDS 1.03a

@FileSet
  Description: "NLDAP 1.01 General Release Patch"
  Name:        LDAP103A
  Class:       MANDATORY
  Bytes:       300000

command icmd

getpath sysvol, 4, 'SYS:', ''

;-------------- BACKUP -------------------
display 2, "Making backup of files to be replaced."
display 0, "This installation will now backup the files that will be replaced.  Later, if you wish to restore these files you will need to copy them from the backup directory."

getpath backup, 1, 'SYS:\\SYSTEM\\LDAP.BAK\\LDAP103A', 'Replaced files will be saved under the SYS:\\SYSTEM\\LDAP.BAK\\LDAP103A directory.  To specify a different backup path ...'

;enough space for a backup
spacecheck backup, 150000

copyfile 0, 2, 1, 2, 'r', NWSRC, 'LDAP103A.TXT', '', '', backup, 'LDAP103A.TXT', '', ''
copyfile 0, 2, 1, 1, 0, 
         sysvol, 'SYSTEM\\NLDAP.NLM', '', '',
         backup, 'SYSTEM\\NLDAP.NLM', '', '', 2
copyfile 0, 2, 1, 1, 0, 
         sysvol, 'ETC\\NLDAP.CFG', '', '',
         backup, 'ETC\\NLDAP.CFG', '', '', 2

;--------------- INSTALL ------------------
display 0, "This installation will now proceed by unloading, replacing, and reloading the LDAP Services for NDS patch file(s).  If you do not wish to continue, abort now by pressing <ESC>."

display 2, "Unloading the LDAP Services for NDS module."
console "unload nldap", 2
display 2, "Copying the patch files."
copyfile 1, 1, 1, 1, 0, 
         NWSRC, 'SYSTEM', '', '', 
         sysvol, 'SYSTEM', '', '', 4
copyfile 1, 1, 1, 1, 0, 
         NWSRC, 'ETC', '', '', 
         sysvol, 'ETC', '', '', 4
display 2, "Restarting the LDAP Services for NDS."
console "load NLDAP.NLM", 2
activate

display 1, 'Installation has completed.'

@EndFileSet

[ RETURN TO DIRECTORY ]