mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Remove more redundant code
This commit is contained in:
parent
3a05a92e0b
commit
36877decab
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user