Commit 915e79f8b32bcaeecbfaf885eb94a80fc71287f1

Authored by Sergio Oliveira
1 parent 2a7d572e

Updating bootstrap script

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
puppet/bootstrap.sh
1 1 #!/bin/bash
2 2  
3   -PUPPET_VERSION=`dpkg -l | grep puppet-common | awk '{ print $3 }'`
  3 +PUPPET_VERSION=`dpkg -l | grep puppet-common | awk '{ print $3 }' | cut -d- -f1`
  4 +dpkg --compare-versions "$PUPPET_VERSION" "<" "3.3" ; OUTDATED=$?
4 5  
5   -if [ "$PUPPET_VERSION" != '3.2.3-1puppetlabs1' ] ; then
  6 +if [ $OUTDATED -eq 0 ] ; then
6 7 wget -O /tmp/puppet_apt.deb http://apt.puppetlabs.com/puppetlabs-release-precise.deb &> /dev/null
7 8 dpkg -i /tmp/puppet_apt.deb
8 9 DEBIAN_FRONTEND=noninteractive apt-get update -y
... ...