Skip to content

Commit 5601dff

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Set PS4 in stack.sh to provide additional debug info"
2 parents 42164c8 + 09883c0 commit 5601dff

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

stack.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
# Print the commands being run so that we can see the command that triggers
2424
# an error. It is also useful for following along as the install occurs.
2525
set -o xtrace
26+
export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
2627

2728
# Make sure custom grep options don't get in the way
2829
unset GREP_OPTIONS
@@ -240,6 +241,7 @@ echo "$STACK_USER ALL=(root) NOPASSWD:ALL" >$TEMPFILE
240241
# see them by forcing ``PATH``
241242
echo "Defaults:$STACK_USER secure_path=/sbin:/usr/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/local/bin" >> $TEMPFILE
242243
echo "Defaults:$STACK_USER !requiretty" >> $TEMPFILE
244+
echo "Defaults env_keep += PS4" >> $TEMPFILE
243245
chmod 0440 $TEMPFILE
244246
sudo chown root:root $TEMPFILE
245247
sudo mv $TEMPFILE /etc/sudoers.d/50_stack_sh

0 commit comments

Comments
 (0)