dr_validate script failing because the shell is incorrect

Document ID : KB000005346
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

The dr_validate script used as part of the data repository install or upgrade, is failing with the following message: "You must run this script in the BASH shell.  Exiting...."  After switching to the bash shell and running the script again, it still fails with the same message

Environment:
All CAPM versions
Cause:

The install is being run as a sudo user and the shell environment is not being loaded

Resolution:

If you are running the dr_validate script as a sudo user then the shell environment must be loaded before running the script.  The way to do that is simply to run sudo su - (or su -).  After doing this, the dr_validate will proceed without giving the error about not being in the bash shell