Fix puppet log move for non-root

If you run something like all-in-one.sh as a non-root user, it will fail
when it goes to move the puppet log file. We need to run it as sudo if
the user is not root.

Change-Id: I8b9d7e587f31a82fb4b59de770882139fd168667
This commit is contained in:
Alex Schultz 2016-12-02 10:45:17 -07:00
parent 7f0a1834c5
commit 5a078e69d3

View File

@ -205,7 +205,7 @@ function catch_selinux_alerts() {
}
function timestamp_puppet_log() {
mv ${WORKSPACE}/puppet.log ${WORKSPACE}/puppet-$(date +%Y%m%d_%H%M%S).log
$SUDO mv ${WORKSPACE}/puppet.log ${WORKSPACE}/puppet-$(date +%Y%m%d_%H%M%S).log
}
function catch_puppet_failures() {