Remove more redundant code

This commit is contained in:
Ahmed Muawia Khan 2018-07-26 14:38:36 +02:00
parent 3a05a92e0b
commit 36877decab

View File

@ -2,12 +2,6 @@
set -o nounset set -o nounset
# Check for uninitialized variables
NOUNSET=${NOUNSET:-}
if [[ -n "$NOUNSET" ]]; then
set -o nounset
fi
# Check if directory for monit logs exists # Check if directory for monit logs exists
if [ ! -d "$HOME/.bigchaindb-monit" ]; then if [ ! -d "$HOME/.bigchaindb-monit" ]; then
mkdir -p "$HOME/.bigchaindb-monit" mkdir -p "$HOME/.bigchaindb-monit"
@ -175,11 +169,5 @@ EOF
# Setting permissions for control file # Setting permissions for control file
chmod 0700 ${monit_exec_path} chmod 0700 ${monit_exec_path}
# Kill background processes on exit
function exit_trap {
exit $?
}
trap exit_trap EXIT
echo -e "BigchainDB process manager configured!" echo -e "BigchainDB process manager configured!"
set -o errexit set -o errexit