File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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.
2525set -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
2829unset GREP_OPTIONS
@@ -240,6 +241,7 @@ echo "$STACK_USER ALL=(root) NOPASSWD:ALL" >$TEMPFILE
240241# see them by forcing ``PATH``
241242echo " Defaults:$STACK_USER secure_path=/sbin:/usr/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/local/bin" >> $TEMPFILE
242243echo " Defaults:$STACK_USER !requiretty" >> $TEMPFILE
244+ echo " Defaults env_keep += PS4" >> $TEMPFILE
243245chmod 0440 $TEMPFILE
244246sudo chown root:root $TEMPFILE
245247sudo mv $TEMPFILE /etc/sudoers.d/50_stack_sh
You can’t perform that action at this time.
0 commit comments