Skip to content

Commit c0d7b01

Browse files
Add support for Ubuntu bionic distro
1 parent bd43db1 commit c0d7b01

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ubuntu.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ set -e
1414
PUPPET_COLLECTION="-${PUPPET_COLLECTION}"
1515
[[ "${PUPPET_COLLECTION}" == "" ]] && PINST="puppet" || PINST="puppet-agent"
1616

17-
REPO_DEB_URL="http://apt.puppetlabs.com/puppetlabs-release${PUPPET_COLLECTION}-${DISTRIB_CODENAME}.deb"
17+
if [[ "${DISTRIB_CODENAME}" == 'bionic' ]]; then
18+
REPO_DEB_URL="http://apt.puppetlabs.com/puppet${PUPPET_VERSION}-release-${DISTRIB_CODENAME}.deb"
19+
else
20+
REPO_DEB_URL="http://apt.puppetlabs.com/puppetlabs-release${PUPPET_COLLECTION}-${DISTRIB_CODENAME}.deb"
21+
fi
1822

1923
#--------------------------------------------------------------------
2024
# NO TUNABLES BELOW THIS POINT

0 commit comments

Comments
 (0)