Skip to content

Commit 2eacce1

Browse files
authored
2fauth: update composer command (#9168)
* chore: update composer command * Change composer install option from prefer-source to prefer-dist
1 parent e40ed2b commit 2eacce1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ct/2fauth.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function update_script() {
5454
chown -R www-data: "/opt/2fauth"
5555
chmod -R 755 "/opt/2fauth"
5656
export COMPOSER_ALLOW_SUPERUSER=1
57-
$STD composer install --no-dev --prefer-source
57+
$STD composer install --no-dev --prefer-dist
5858
php artisan 2fauth:install
5959
$STD systemctl restart nginx
6060

install/2fauth-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ sed -i -e "s|^APP_URL=.*|APP_URL=http://$IPADDRESS|" \
5353
-e "s|^DB_PASSWORD=$|DB_PASSWORD=$DB_PASS|" .env
5454
export COMPOSER_ALLOW_SUPERUSER=1
5555
$STD composer update --no-plugins --no-scripts
56-
$STD composer install --no-dev --prefer-source --no-plugins --no-scripts
56+
$STD composer install --no-dev --prefer-dist --no-plugins --no-scripts
5757
$STD php artisan key:generate --force
5858
$STD php artisan migrate:refresh
5959
$STD php artisan passport:install -q -n

0 commit comments

Comments
 (0)