We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34d623a commit 0a246a5Copy full SHA for 0a246a5
tasks/install_shell.sh
@@ -554,10 +554,11 @@ install_file() {
554
fi
555
556
rpm -Uvh --oldpackage --replacepkgs "$2"
557
+ exists dnf && PKGCMD=dnf || PKGCMD=yum
558
if test "$version" = 'latest'; then
- run_cmd "yum install -y puppet-agent && yum upgrade -y puppet-agent"
559
+ run_cmd "${PKGCMD} install -y puppet-agent && ${PKGCMD} upgrade -y puppet-agent"
560
else
- run_cmd "yum install -y 'puppet-agent-${puppet_agent_version}'"
561
+ run_cmd "${PKGCMD} install -y 'puppet-agent-${puppet_agent_version}'"
562
563
;;
564
"noarch.rpm")
0 commit comments