Custom scripts are moved when upgrading to Encryption Management Server 10.5

book

Article ID: 197045

calendar_today

Updated On:

Products

Encryption Management Server Encryption Management Server Powered by PGP Technology Gateway Email Encryption Gateway Email Encryption Powered by PGP Technology PGP Key Management Server

Issue/Introduction

You can upgrade to Encryption Management Server 10.5 by doing a fresh install from *.iso and restoring a backup from Encryption Management Server 3.3.2 or above. 

When you upgrade in this way:

  1. The contents of the /var/lib/ovid/customization directory are copied to the /var/lib/ovid/customization_legacy directory.
  2. System scripts with the names pgp*.sh are created in the /var/lib/ovid/wrapper directory. There are 11 scripts.
  3. System scripts with the names pgp*.sh are created in the /var/lib/ovid/customization directory. These 11 scripts are empty.
  4. The scripts in the /var/lib/ovid/wrapper directory call the corresponding script name in the /var/lib/ovid/customization directory, therefore do not make changes to the scripts in the /var/lib/ovid/wrapper directory because any changes you make will be overwritten when you next upgrade. Instead, only make changes to the scripts in the /var/lib/ovid/customization directory.

The 11 scripts in the /var/lib/ovid/wrapper directory are:

pgpbackup-post-backup-custom.sh
pgpbackup-post-restore-custom.sh
pgpbackup-pre-backup-custom.sh
pgpbackup-pre-restore-custom.sh
pgpsysconf-post-custom.sh
pgpsysconf-pre-custom.sh
pgpupdate-custom-reboot.sh
pgpupdate-post-install-hook.sh
pgpupdate-post-unpack-hook.sh
pgpupdate-pre-install-hook.sh
pgpupdate-pre-unpack-hook.sh

Note that these 2 system scripts which were present in release 3.4 and above, are no longer present in release 10.5:

pgpbackup-post-custom.sh
pgpbackup-pre-custom.sh

They have been replaced by:

pgpbackup-post-backup-custom.sh
pgpbackup-pre-backup-custom.sh

Environment

Encryption Management Server 10.5

Resolution

This will only potentially cause a problem if you had made customizations to any of the pgp*.sh scripts in the /var/lib/ovid/customization directory in your previous release.

After upgrading, you will need to copy any pgp*.sh scripts that you customized from the /var/lib/ovid/customization_legacy directory to the /var/lib/ovid/customization directory.

For example, you may have customized the /var/lib/ovid/customization/pgpsysconf-post-custom.sh script in your previous release. After upgrading to release 10.5 and restoring the backup of your previous release, SSH to the server and copy back the custom script:

cp -p /var/lib/ovid/customization_legacy/pgpsysconf-post-custom.sh /var/lib/ovid/customization/

If you customized either of these scripts in your previous release:

pgpbackup-post-custom.sh
pgpbackup-pre-custom.sh

you will need to copy them to the /var/lib/ovid/customization directory with a new name. For example:

cp -p /var/lib/ovid/customization_legacy/pgpbackup-post-custom.sh /var/lib/ovid/customization/pgpbackup-post-backup-custom.sh
cp -p /var/lib/ovid/customization_legacy/pgpbackup-pre-custom.sh /var/lib/ovid/customization/pgpbackup-pre-backup-custom.sh