Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Services/PHP/PHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function installExtension(string $name): void
*/
public function installComposer(): void
{
$this->service->server->ssh()->exec(
$this->service->server->ssh('root')->exec(
view('ssh.services.php.install-composer'),
'install-composer'
);
Expand Down
4 changes: 2 additions & 2 deletions resources/views/ssh/services/php/install-composer.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

curl -sS https://getcomposer.org/installer -o composer-setup.php

sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
php composer-setup.php --install-dir=/usr/local/bin --filename=composer

rm composer-setup.php

composer
su vito -c 'composer --version'