From 4fc49fc85c637ef0b7c880745ca90977af23e5e5 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Wed, 4 May 2016 09:18:25 -0400 Subject: [PATCH] Check for both curl and wget for puppetlabs deb As a host may not have wget add logic to try curl too. Change-Id: I9a2ffeff08926eec5f4fee04fde0ddcc19004493 Signed-off-by: Paul Belanger --- install_puppet.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install_puppet.sh b/install_puppet.sh index 45386bc8aa..fcd94ac92e 100755 --- a/install_puppet.sh +++ b/install_puppet.sh @@ -191,7 +191,11 @@ EOF # the version of puppet ship by xenial. if [ $lsbdistcodename != 'xenial' ]; then puppet_deb=puppetlabs-release-${lsbdistcodename}.deb - wget http://apt.puppetlabs.com/$puppet_deb -O $puppet_deb + if type curl >/dev/null 2>&1; then + curl -O http://apt.puppetlabs.com/$puppet_deb + else + wget http://apt.puppetlabs.com/$puppet_deb -O $puppet_deb + fi dpkg -i $puppet_deb rm $puppet_deb fi;