Skip to content

Commit

Permalink
Simplify setting function
Browse files Browse the repository at this point in the history
There is only one config file we care about now
  • Loading branch information
spacecowboy committed Oct 14, 2016
1 parent 253efc6 commit 4d9c685
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/3.1/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
setting() {
setting="${1}"
value="${2}"
file="${3:-neo4j.conf}"

if [ ! -f "conf/${file}" ]; then
if [ -f "conf/neo4j.conf" ]; then
file="neo4j.conf"
fi
fi
file="neo4j.conf"

if [ -n "${value}" ]; then
if grep -q -F "${setting}=" conf/"${file}"; then
Expand Down

0 comments on commit 4d9c685

Please sign in to comment.