Skip to content

The cli-based installer does not exit with a non-zero exit code when error occurs #3907

@TheWitness

Description

@TheWitness

Describe the bug

When errors occur in the install_cacti.php script, the script should exit with a non-zero exit code, which it does not.

To Reproduce

Steps to reproduce the behavior:

  1. Go to /var/www/html/cacti/cli

  2. uninstall a critical php module such as ldap

  3. Run the installer to install cacti. Not that there are errors

  4. Run "echo $?" and note that the scripted exited with a zero error code

Expected behavior

CLI script should exit with non-zero exit codes when they fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions