mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Restore vendor contents even if composer is not available (#8223)
* Restore vendor contents even if composer is not available Leave the code in both places for safety. * Instruct users to use the wrapper instead of straight up composer...
This commit is contained in:
6
daily.sh
6
daily.sh
@@ -227,6 +227,12 @@ main () {
|
||||
status_run 'Cleaning up DB' "$DAILY_SCRIPT cleanup"
|
||||
;;
|
||||
post-pull)
|
||||
# Check for missing vendor dir
|
||||
if [ ! -f vendor/autoload.php ]; then
|
||||
git checkout 609676a9f8d72da081c61f82967e1d16defc0c4e -- vendor/
|
||||
git reset HEAD vendor/ # don't add vendor directory to the index
|
||||
fi
|
||||
|
||||
status_run 'Updating Composer packages' "${COMPOSER} install --no-dev" 'update'
|
||||
|
||||
# Check if we need to revert (Must be in post pull so we can update it)
|
||||
|
Reference in New Issue
Block a user