Skip to content

Commit

Permalink
Merge pull request #23 from shubhamshinde360/PA-6047
Browse files Browse the repository at this point in the history
(PA-6047) Add support for Ubuntu 24.04
  • Loading branch information
joshcooper authored Jun 21, 2024
2 parents 5930e9e + 3bdd09a commit f321cca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -789,11 +789,7 @@ install_file() {
fi

rpm -Uvh --oldpackage --replacepkgs "$2"
if exists dnf; then
PKGCMD=dnf
else
PKGCMD=yum
fi
exists dnf && PKGCMD=dnf || PKGCMD=yum
if test "$version" = 'latest'; then
run_cmd "${PKGCMD} install -y puppet-agent && ${PKGCMD} upgrade -y puppet-agent"
else
Expand Down Expand Up @@ -950,6 +946,7 @@ case $platform in
"18.04") deb_codename="bionic";;
"20.04") deb_codename="focal";;
"22.04") deb_codename="jammy";;
"24.04") deb_codename="noble";;
esac
filetype="deb"
filename="${collection}-release-${deb_codename}.deb"
Expand Down
2 changes: 1 addition & 1 deletion modules/puppet_agent

0 comments on commit f321cca

Please sign in to comment.