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:
parent
7f0a1834c5
commit
5a078e69d3
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user