mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Prep for composer changes (#8075)
* Prep for composer changes * Update composer.json, composer.lock and a small update to phpmailer and Yaml * Prevent accidental `composer update` runs * Add --no-interaction to daily.sh
This commit is contained in:
@@ -54,12 +54,16 @@ if (!empty($path_exec)) {
|
||||
}
|
||||
|
||||
// Download composer.phar (code from the composer web site)
|
||||
$sha = trim(file_get_contents('http://composer.github.io/installer.sig'));
|
||||
$good_sha = trim(@file_get_contents('http://composer.github.io/installer.sig'));
|
||||
|
||||
// Download composer.phar (code from the composer web site)
|
||||
@copy('http://getcomposer.org/installer', 'composer-setup.php');
|
||||
if (@hash_file('SHA384', 'composer-setup.php') === $sha) {
|
||||
if (!empty($good_sha) && @hash_file('SHA384', 'composer-setup.php') === $good_sha) {
|
||||
// Installer verified
|
||||
shell_exec('php composer-setup.php');
|
||||
$exec = 'php ' . $install_dir . '/composer.phar';
|
||||
} else {
|
||||
echo "Corrupted download.\n";
|
||||
}
|
||||
@unlink('composer-setup.php');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user