From 2eacce169c3737dcead7d98287bffc43a46372b7 Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Sat, 15 Nov 2025 17:29:47 +0100 Subject: [PATCH] 2fauth: update composer command (#9168) * chore: update composer command * Change composer install option from prefer-source to prefer-dist --- ct/2fauth.sh | 2 +- install/2fauth-install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/2fauth.sh b/ct/2fauth.sh index f6ffecc21..ba6195aa4 100644 --- a/ct/2fauth.sh +++ b/ct/2fauth.sh @@ -54,7 +54,7 @@ function update_script() { chown -R www-data: "/opt/2fauth" chmod -R 755 "/opt/2fauth" export COMPOSER_ALLOW_SUPERUSER=1 - $STD composer install --no-dev --prefer-source + $STD composer install --no-dev --prefer-dist php artisan 2fauth:install $STD systemctl restart nginx diff --git a/install/2fauth-install.sh b/install/2fauth-install.sh index 2ef85c879..f1d907138 100644 --- a/install/2fauth-install.sh +++ b/install/2fauth-install.sh @@ -53,7 +53,7 @@ sed -i -e "s|^APP_URL=.*|APP_URL=http://$IPADDRESS|" \ -e "s|^DB_PASSWORD=$|DB_PASSWORD=$DB_PASS|" .env export COMPOSER_ALLOW_SUPERUSER=1 $STD composer update --no-plugins --no-scripts -$STD composer install --no-dev --prefer-source --no-plugins --no-scripts +$STD composer install --no-dev --prefer-dist --no-plugins --no-scripts $STD php artisan key:generate --force $STD php artisan migrate:refresh $STD php artisan passport:install -q -n