Skip to content

Commit

Permalink
OraOpenSource#200 Fix entropy issues for cloud servers if required
Browse files Browse the repository at this point in the history
  • Loading branch information
martindsouza committed Dec 22, 2016
1 parent 71e41da commit 30b3105
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ else
echo; echo \* No known package manager found \*
fi

# See #200: Entropy issues for cloud servers
echo; echo \* Checking Entropy \*; echo
entropy_avail=$( cat /proc/sys/kernel/random/entropy_avail )
echo Current Entropy: $entropy_avail
if [ $entropy_avail -lt 1000 ]
then
yum install -y haveged
chkconfig haveged on
service haveged start
fi


#https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
#Download and install Node.js
if [ "$OOS_MODULE_NODEJS" = "Y" ]; then
Expand Down

0 comments on commit 30b3105

Please sign in to comment.