Skip to content

server install rvm conflict with chef #244

@halida

Description

@halida

I need deploy something to one of my server test with user deployer, and this user already installed rvm.
So when I run fix node:test, littlechef will use rvm environment, it will raise error about not found chef.
Solve this thing, I need run rvm reset first after using deployer user, is there any callback for this?

I'm thinking about add one config for this:

[userinfo]
run_script=init.sh

In init.sh:

if which rvm > /dev/null; then
    rvm reset
fi

Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions