Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
Composer: update hash - new version does not match old hash (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrudosvorlicek authored Oct 21, 2021
1 parent da9cd72 commit 5867dfa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions cli/8.0/conf/composer/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fi
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

php -r "
\$hash = '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3';
\$hash = '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8';
if (hash_file('sha384', 'composer-setup.php') === \$hash) {
echo 'Installer verified' . PHP_EOL;
Expand All @@ -26,7 +26,7 @@ php -r "
unlink('composer-setup.php');
exit(1);
}
echo PHP_EOL;
"

Expand All @@ -37,4 +37,4 @@ fi
php composer-setup.php
php -r "unlink('composer-setup.php');"

mv composer.phar /usr/local/bin/composer
mv composer.phar /usr/local/bin/composer
6 changes: 3 additions & 3 deletions fpm/8.0/conf/composer/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fi
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

php -r "
\$hash = '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3';
\$hash = '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8';
if (hash_file('sha384', 'composer-setup.php') === \$hash) {
echo 'Installer verified' . PHP_EOL;
Expand All @@ -26,7 +26,7 @@ php -r "
unlink('composer-setup.php');
exit(1);
}
echo PHP_EOL;
"

Expand All @@ -37,4 +37,4 @@ fi
php composer-setup.php
php -r "unlink('composer-setup.php');"

mv composer.phar /usr/local/bin/composer
mv composer.phar /usr/local/bin/composer

0 comments on commit 5867dfa

Please sign in to comment.