Skip to content

Commit 171d756

Browse files
remove elevation requirement (#1008)
1 parent f262bfc commit 171d756

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/Services/PHP/PHP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function installExtension(string $name): void
128128
*/
129129
public function installComposer(): void
130130
{
131-
$this->service->server->ssh()->exec(
131+
$this->service->server->ssh('root')->exec(
132132
view('ssh.services.php.install-composer'),
133133
'install-composer'
134134
);

resources/views/ssh/services/php/install-composer.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

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

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

77
rm composer-setup.php
88

9-
composer
9+
su vito -c 'composer --version'

0 commit comments

Comments
 (0)