Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gitlab-ctl reconfigure LD_LIBRARY_PATH warning #364

Conversation

lnemsick-simp
Copy link
Contributor

Pull Request (PR) description

This patch ensures LD_LIBRARY_PATH is unset in the gitlab-ctl configure
exec resource.

This Pull Request (PR) fixes the following issues

Fixes the LD_LIBRARY_PATH warning emitted at the end of gitlab-ctl reconfigure.

As shown in https://travis-ci.org/github/voxpupuli/puppet-gitlab/jobs/739916738
on lines 2089-2090, gitlab-ctl reconfigure emits a warning when LD_LIBRARY_PATH
is set. It emits this warning even if that environment variable is empty. Since
LD_LIBRARY_PATH is always set by the Puppet wrapper script used in the puppet
CLI, the exec that runs gitlab-ctl configure must unset this variable to
avoid the warning message.

This patch ensures LD_LIBRARY_PATH is unset in the `gitlab-ctl configure`
`exec` resource.

As shown in https://travis-ci.org/github/voxpupuli/puppet-gitlab/jobs/739916738
on lines 2089-2090, `gitlab-ctl reconfigure` emits a warning when LD_LIBRARY_PATH
is set. It emits this warning even if that enviroment variable is empty.  Since
LD_LIBRARY_PATH is always set by the Puppet wrapper script used in the `puppet`
CLI, the `exec` that runs `gitlab-ctl configure` must unset this variable to
avoid the warning message.
@trevor-vaughan trevor-vaughan added the bug Something isn't working label Nov 5, 2020
@bastelfreak bastelfreak merged commit 250697e into voxpupuli:master Nov 5, 2020
@lnemsick-simp lnemsick-simp deleted the unset_ld_library_path_gitlab_ctl_reconfigure branch February 16, 2021 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants