Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi authored and rschlussel committed Aug 6, 2019
1 parent db03518 commit 84e50df
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ set -euo pipefail

CONFIG="$1"

shift 1

PRESTO_CONFIG_DIRECTORY="/docker/volumes/conf/presto/etc"
CONFIG_PROPERTIES_LOCATION="${PRESTO_CONFIG_DIRECTORY}/${CONFIG}.properties"

if [[ ! -e ${CONFIG_PROPERTIES_LOCATION} ]]; then
echo "${CONFIG_PROPERTIES_LOCATION} does not exist"
if [[ ! -f "${CONFIG_PROPERTIES_LOCATION}" ]]; then
echo "${CONFIG_PROPERTIES_LOCATION} does not exist" >&2
exit 1
fi

shift 1

/docker/volumes/presto-server/bin/launcher \
-Dnode.id="${HOSTNAME}" \
--etc-dir="${PRESTO_CONFIG_DIRECTORY}" \
Expand Down

0 comments on commit 84e50df

Please sign in to comment.