Installing vertica on the DR systems, but getting an error: This script must be run in bash.
search cancel

Installing vertica on the DR systems, but getting an error: This script must be run in bash.

book

Article ID: 186247

calendar_today

Updated On:

Products

CA Infrastructure Management CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

We are doing an install of vertica using a sudo user.

When we run the validate we get an error:

This script must be run in bash.

Which bash shows /usr/bin/bash

Environment

Release : 21.2.x

Installs and Upgrades

 

Cause

The validate calls a function that explicitly checks for bash in /bin/bash

bin/propertiesSystemChecksFunctions.sh: if [ "$SHELL" != '/bin/bash' ]

Resolution

Both the dr_validate and vertica itself make a pass/fail call to check if you are using bash specifically from /bin/bash.

So the sudo user must use this path.

To check the available shells:

more /etc/shells

Use usermod to edit the default shell of the user to /bin/bash

E.G.

usermod <user> -s /bin/bash

Easiest way to verify that the change was made is to:

more /etc/passwd

And look for the username, the shell will be listed here.

Additional Information

man usermod
for guidance on the usermod command