How to pass multiple parameters to su -c âcommandâ
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I want to execute composer as non root user. So I renamed main composer executable file to composer-call
and then create another executable file called composer
.
#composer.sh
su nginx -c "composer-call $@"
Now when I execute composer --version
it works but while pass some more complex parameters like composer create-project drupal-composer/drupal-project:8.x-dev some-dir --stability dev --no-interaction
it shows error "unrecognized option: stability"
bash shell-script shell bash-expansion
add a comment |Â
up vote
0
down vote
favorite
I want to execute composer as non root user. So I renamed main composer executable file to composer-call
and then create another executable file called composer
.
#composer.sh
su nginx -c "composer-call $@"
Now when I execute composer --version
it works but while pass some more complex parameters like composer create-project drupal-composer/drupal-project:8.x-dev some-dir --stability dev --no-interaction
it shows error "unrecognized option: stability"
bash shell-script shell bash-expansion
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want to execute composer as non root user. So I renamed main composer executable file to composer-call
and then create another executable file called composer
.
#composer.sh
su nginx -c "composer-call $@"
Now when I execute composer --version
it works but while pass some more complex parameters like composer create-project drupal-composer/drupal-project:8.x-dev some-dir --stability dev --no-interaction
it shows error "unrecognized option: stability"
bash shell-script shell bash-expansion
I want to execute composer as non root user. So I renamed main composer executable file to composer-call
and then create another executable file called composer
.
#composer.sh
su nginx -c "composer-call $@"
Now when I execute composer --version
it works but while pass some more complex parameters like composer create-project drupal-composer/drupal-project:8.x-dev some-dir --stability dev --no-interaction
it shows error "unrecognized option: stability"
bash shell-script shell bash-expansion
bash shell-script shell bash-expansion
asked 3 mins ago
SkyRar
14
14
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476155%2fhow-to-pass-multiple-parameters-to-su-user-c-command%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password