From 915e79f8b32bcaeecbfaf885eb94a80fc71287f1 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Thu, 24 Oct 2013 23:48:20 -0200 Subject: [PATCH] Updating bootstrap script --- puppet/bootstrap.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/puppet/bootstrap.sh b/puppet/bootstrap.sh index e710963..6bd2166 100755 --- a/puppet/bootstrap.sh +++ b/puppet/bootstrap.sh @@ -1,8 +1,9 @@ #!/bin/bash -PUPPET_VERSION=`dpkg -l | grep puppet-common | awk '{ print $3 }'` +PUPPET_VERSION=`dpkg -l | grep puppet-common | awk '{ print $3 }' | cut -d- -f1` +dpkg --compare-versions "$PUPPET_VERSION" "<" "3.3" ; OUTDATED=$? -if [ "$PUPPET_VERSION" != '3.2.3-1puppetlabs1' ] ; then +if [ $OUTDATED -eq 0 ] ; then wget -O /tmp/puppet_apt.deb http://apt.puppetlabs.com/puppetlabs-release-precise.deb &> /dev/null dpkg -i /tmp/puppet_apt.deb DEBIAN_FRONTEND=noninteractive apt-get update -y -- libgit2 0.21.2