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

Add setShellPath method to customize shell path in Host class #3942

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

smartfire-tech
Copy link

  • Bug fix #…?
  • New feature?
  • BC breaks?
  • Tests added?
  • Docs added?

Description

This PR adds a setShellPath method to the Host class, allowing users to define a custom shell path more easily when using Deployer.

Why this change is necessary

When using MySecureShell or other shell environments that do not support the -l option, Deployer's SSH command fails. By providing a dedicated method for setting the shell path, users can work around this issue without needing to manually override the shell path in the configuration.

What this PR does

  • Adds setShellPath and getShellPath methods to the Host class.
  • Allows users to set a custom shell path via the deploy.php configuration file.

Example

host('production')
    ->setHostname('your-hostname')
    ->setRemoteUser('your-user')
    ->setIdentityFile('~/.ssh/your-key')
    ->setShellPath('/bin/bash');  // Sets the shell path to /bin/bash

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.

1 participant