Avoid calling pbs_postinstall from pbs_habitat

Description

If an admin installs PBS Pro and then modifies the location of PBS_HOME in /etc/pbs.conf, pbs_habitat will attempt to run pbs_postinstall again to create the new PBS_HOME if it doesn't already exist. If the admin made a mistake while updating the config file, they likely don't want to create a new PBS_HOME. When this occurs, pbs_habitat should exit (code 1) and issue the following message:

WARNING: PBS_HOME not found in $PBS_HOME
Please update your configuration file or run the following command before starting PBS Pro:

${PBS_EXEC}/libexec/pbs_postinstall update

The pbs_postinstall script will need to be updated to accept the "update" parameter and avoid making changes to pbs.conf in this case.

Acceptance Criteria

None

Status

Assignee

Unassigned

Reporter

Michael Karo

Severity

None

OS

None

Start Date

None

Pull Request URL

None

Story Points

1

Components

Affects versions

14.1.0
18.1.0

Priority

Low
Configure