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 b61dcd5 commit 6bac026Copy full SHA for 6bac026
tasks/agent_install.sh
@@ -1,11 +1,12 @@
1
#!/bin/bash
2
3
set -e
4
+set -o pipefail
5
6
if [ -x "/opt/puppetlabs/bin/puppet" ]; then
7
echo "WARNING: Puppet agent is already installed. Re-install, re-configuration, or upgrade not supported and might fail."
8
fi
9
10
flags=$(echo "$PT_install_flags" | sed -e 's/^\["*//' -e 's/"*\]$//' -e 's/", *"/ /g')
11
-curl -k "https://${PT_server}:8140/packages/current/install.bash" | bash -s -- $flags
12
+curl --fail -k "https://${PT_server}:8140/packages/current/install.bash" | bash -s -- $flags
0 commit comments