Skip to content

[Bug]: obd install script will destroy PATH env #226

@longdafeng

Description

@longdafeng

Describe the bug

I have set the PATH in the shell env ~/.bashrc

after install obd, it will add /usr/bin at the front of PATH, this will destroy my setting.

Environment

os: Centos Stream 9 64
ob: 4.3.5-bp4

OceanBase Deploy: 3.6.0
REVISION: b36013bb09a84516e56db51dba78a9d9096735e7
BUILD_BRANCH: HEAD
BUILD_TIME: Sep 04 2025 10:50:58OURCE
Copyright (C) 2025 OceanBase
License Apache 2.0: Apache version 2 or later https://www.apache.org/licenses/LICENSE-2.0.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Fast reproduce steps

install obd

Expected behavior


/home/longda/.pyenv/shims:/home/longda/.pyenv/bin:/home/longda/.local/bin:/home/longda/.nvm/versions/node/v22.18.0/bin:/usr/local/bin:/usr/bin:/home/longda/.pyenv/versions/3.12.11/bin:/home/longda/.pyenv/libexec:/home/longda/.pyenv/plugins/python-build/bin:/home/longda/.pyenv/bin:/home/longda/.local/bin:/home/longda/.nvm/versions/node/v22.18.0/bin:/home/longda/.local/bin:/home/longda/bin:/usr/local/bin:/usr/bin:/usr/share/Modules/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin  in .bashrc
/home/longda/.pyenv/shims:/home/longda/.pyenv/bin:/home/longda/.local/bin:/home/longda/.nvm/versions/node/v22.18.0/bin:/usr/local/bin:/usr/bin:/home/longda/.pyenv/versions/3.12.11/bin:/home/longda/.pyenv/libexec:/home/longda/.pyenv/plugins/python-build/bin:/home/longda/.pyenv/bin:/home/longda/.local/bin:/home/longda/.nvm/versions/node/v22.18.0/bin:/home/longda/.local/bin:/home/longda/bin:/usr/local/bin:/usr/bin:/usr/share/Modules/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin  in .bash_profile before
/usr/bin:/usr/bin:/home/longda/.pyenv/shims:/home/longda/.pyenv/bin:/home/longda/.local/bin:/home/longda/.nvm/versions/node/v22.18.0/bin:/usr/local/bin:/usr/bin:/home/longda/.pyenv/versions/3.12.11/bin:/home/longda/.pyenv/libexec:/home/longda/.pyenv/plugins/python-build/bin:/home/longda/.pyenv/bin:/home/longda/.local/bin:/home/longda/.nvm/versions/node/v22.18.0/bin:/home/longda/.local/bin:/home/longda/bin:/usr/local/bin:/usr/bin:/usr/share/Modules/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin  in .bash_profile after

Actual behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions