Merge pull request #818 from livarcocc/file_descriptor_limit
Fixes the file descriptor issue during restore on OSX
This commit is contained in:
commit
2417f50f8d
1 changed files with 9 additions and 0 deletions
|
@ -24,6 +24,15 @@ header "Checking Pre-Reqs"
|
|||
|
||||
$REPOROOT/scripts/test/check-prereqs.sh
|
||||
|
||||
header "Adjusting file descriptors limit, if necessary"
|
||||
# Increases the file descriptors limit for this bash. It prevents an issue we were hitting during restore
|
||||
FILE_DESCRIPTOR_LIMIT=$( ulimit -n )
|
||||
if [ $FILE_DESCRIPTOR_LIMIT -lt 512 ]
|
||||
then
|
||||
info "Increasing file description limit to 512"
|
||||
ulimit -n 512
|
||||
fi
|
||||
|
||||
header "Restoring Tools and Packages"
|
||||
|
||||
if [ ! -z "$OFFLINE" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue