Updating your environment variables script (Upgrading from Version 5.1.x to a later 5.1 refresh)
The commands for upgrading IBM® Software Hub use variables with the format
${VARIABLE_NAME}. Ensure that your environment variables script includes the
correct information for the instance of IBM Software Hub that you want to
upgrade.
- Upgrade phase
-
Updating your client workstation
Collecting required information
Preparing to run an upgrade in a restricted network
Preparing to run an upgrade from a private container registry
Upgrading prerequisite software
Upgrading shared cluster components
Preparing to upgrade an instance
Upgrading an instance
- Who needs to complete this task?
-
Operations team The IBM Software Hub operations team should work with the cluster administrator to compile information about the cluster where IBM Software Hub is installed.
- When do you need to complete this task?
-
Repeat as needed If you have multiple instances of IBM Software Hub on the cluster and you maintain separate scripts for each instance, update the script for each instance that you plan to upgrade.
Editing your environment variables file
- Open your existing environment variable shell script in a text editor.
- Locate the
VERSIONentry and specify the version of IBM Software Hub that you want to upgrade to. For example:export VERSION=5.1.3 - If needed, update the
COMPONENTSvariable.Confirm that the list of service components is accurate.
- Save your changes.
- Confirm that the script does not contain any errors. For example, if you named the script
cpd_vars.sh, run:bash ./cpd_vars.sh
Sourcing the environment variables
You must run the script from a bash prompt before you run the installation and upgrade commands. The script exports the environment variables to your command-line session.
- Change to the directory where you saved the script.
- Source the environment variables. For example, if you named the script
cpd_vars.sh, run:source ./cpd_vars.sh