Skip to content

Commit

Permalink
#5: Add debug
Browse files Browse the repository at this point in the history
Add variable `VERBOSE` that enables `whoami` and lists mounts
  • Loading branch information
tlex committed Sep 28, 2021
1 parent 13b2c01 commit e3edbd2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion set-exim4-update-conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ while [ $# -gt 0 ]; do
sedExpr+=$'\n\t'"s/^#?(${key})=.*/\1='${sed_escaped_value}'/;"
done

set -x
### Debug ###
if [ "${VERBOSE:-false}" == "true" ] ; then
echo "Running as user '$(whoami)'"
set -x
mount | grep -vE "sys|proc|devpts|mqueue|tmpfs"
fi

sed -ri "$sedExpr"$'\n' "$conf"
update-exim4.conf -v

0 comments on commit e3edbd2

Please sign in to comment.