From 20c6b588664537e5ba46be0853d67f1b7975f5ac Mon Sep 17 00:00:00 2001 From: Saeed Vaziry <61919774+saeedvaziry@users.noreply.github.com> Date: Sun, 5 Jan 2025 03:12:49 -0800 Subject: [PATCH] fix missing composer (#418) --- app/SSH/Services/PHP/PHP.php | 1 + app/SSH/Services/PHP/scripts/install-composer.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/SSH/Services/PHP/PHP.php b/app/SSH/Services/PHP/PHP.php index 37506a4..3e6c322 100644 --- a/app/SSH/Services/PHP/PHP.php +++ b/app/SSH/Services/PHP/PHP.php @@ -53,6 +53,7 @@ public function install(): void ]), 'install-php-'.$this->service->version ); + $this->installComposer(); $this->service->server->os()->cleanup(); } diff --git a/app/SSH/Services/PHP/scripts/install-composer.sh b/app/SSH/Services/PHP/scripts/install-composer.sh index c4cdb68..6638792 100755 --- a/app/SSH/Services/PHP/scripts/install-composer.sh +++ b/app/SSH/Services/PHP/scripts/install-composer.sh @@ -4,4 +4,6 @@ curl -sS https://getcomposer.org/installer -o composer-setup.php sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer +rm composer-setup.php + composer