diff --git a/composer.json b/composer.json index 517a0af..94ee84a 100644 --- a/composer.json +++ b/composer.json @@ -98,5 +98,5 @@ "minimum-stability": "stable", "prefer-stable": true, "version": "26.0.2", - "build": "54" + "build": "55" } diff --git a/git_update.sh b/git_update.sh index 3a57da9..ffca419 100755 --- a/git_update.sh +++ b/git_update.sh @@ -18,9 +18,6 @@ git checkout stable echo "Pulling latest stable..." git pull --ff-only -echo "Installing PHP dependencies..." -composer install --no-dev --optimize-autoloader - resolve_php_bin() { if [[ -n "${PHP_BIN:-}" ]]; then echo "$PHP_BIN" @@ -45,6 +42,14 @@ else echo "PHP binary '$PHP_BIN' not found in PATH." fi +echo "Installing PHP dependencies..." +COMPOSER_BIN="$(command -v composer || true)" +if [[ -z "$COMPOSER_BIN" ]]; then + echo "Composer not found in PATH." + exit 1 +fi +$PHP_BIN "$COMPOSER_BIN" install --no-dev --optimize-autoloader + if [[ -x "artisan" ]]; then CONFIGURED_PHP="$($PHP_BIN artisan tinker --execute="echo \\App\\Models\\Setting::where('key','system.php_binary')->value('value') ?? '';" 2>/dev/null || true)" if [[ -n "$CONFIGURED_PHP" ]]; then