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

Make used shell configurable #1536

Merged
merged 1 commit into from
Apr 18, 2018
Merged

Make used shell configurable #1536

merged 1 commit into from
Apr 18, 2018

Conversation

maximilian-walter
Copy link
Contributor

Q A
Bug fix? No
New feature? Yes
BC breaks? No
Deprecations? No
Fixed tickets #1171

I added the property "shellCommand" to the Host-class to change the shell used for commands over SSH. This is handy if the remote server has a non-standard location of the bash-binary or if some additional arguments are required.

My server sets some important environment-variables in "/etc/profile", which is not loaded for non-login-shells. So I use this feature to add the flag "-l" to start an login-shell:

host('example.com')
    ->shellCommand('bash -ls')

@antonmedv antonmedv merged commit ac1b970 into deployphp:master Apr 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants