Skip to content

Commit

Permalink
chg: Use strict bash and improve visualizing errors handling
Browse files Browse the repository at this point in the history
  • Loading branch information
indigo423 committed Nov 3, 2023
1 parent 675355e commit 8746c76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bootstrap-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#
# Script to bootstrap a basic OpenNMS setup

set -eEuo pipefail
trap 's=$?; echo >&2 "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR

# Default build identifier set to stable
DEBIAN_FRONTEND=noninteractive
ERROR_LOG="bootstrap.log"
Expand Down
3 changes: 3 additions & 0 deletions bootstrap-yum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#
# Script to bootstrap a basic OpenNMS setup

set -eEuo pipefail
trap 's=$?; echo >&2 "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR

# Default build identifier set to stable
ERROR_LOG="bootstrap.log"
POSTGRES_USER="postgres"
Expand Down

0 comments on commit 8746c76

Please sign in to comment.