-
Notifications
You must be signed in to change notification settings - Fork 48
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
PHP binary with arguments #46
Comments
Why?
require 'sshkit'
require 'sshkit/dsl'
include SSHKit::DSL
SSHKit.config.command_map[:php] = "php"
on 'localhost' do
puts capture :php, "-i | grep allow_url_fopen"
SSHKit.config.command_map[:php] = "php -d allow_url_fopen=Off"
puts capture :php, "-i | grep allow_url_fopen"
end outputs:
|
@guillaumelecerf this does not reproduce the issue stated by @scuben. The issue is that the first argument is resolved with the command_map. The code to install composer states:
So only As example:
outputs:
|
On the Task
composer:install_executable
which executesI need to change the php binary including its arguments.
The default commend which is being executed looks like this:
curl -s https://getcomposer.org/installer | php
What I need is:
curl -s https://getcomposer.org/installer | php56 -d allow_url_fopen=On
What I already know does not work:
The only viable solution I see is the change the lib code
:php
tofetch(:php)
(or similar) to be able to define the php binary (with its argument) withset :php, 'php -d allow_url_fopen=On'
. Is this true or am I missing something?The text was updated successfully, but these errors were encountered: