Merge "lsb_release is missing for debian setup"

This commit is contained in:
Jenkins 2014-10-03 02:14:48 +00:00 committed by Gerrit Code Review
commit 7a1d9f1ebe

View File

@ -127,6 +127,10 @@ EOF
}
function setup_puppet_ubuntu {
if ! which lsb_release > /dev/null 2<&1 ; then
DEBIAN_FRONTEND=noninteractive apt-get --option 'Dpkg::Options::=--force-confold' \
--assume-yes install -y --force-yes lsb-release
fi
lsbdistcodename=`lsb_release -c -s`
if [ $lsbdistcodename != 'trusty' ] ; then