Use quotes around variables in presto-launcher-wrapper.sh
set -e
-CONFIG=$1
+CONFIG="$1"
if [[ "$CONFIG" != "singlenode" && "$CONFIG" != "multinode-master" && "$CONFIG" != "multinode-worker" && "$CONFIG" != "singlenode-kerberized" && "$CONFIG" != "singlenode-ldap" ]]; then
echo "Usage: launcher-wrapper <singlenode|multinode-master|multinode-worker|singlenode-kerberized|singlenode-ldap> <launcher args>"
@@ -14,10 +14,10 @@ PRESTO_CONFIG_DIRECTORY="/docker/volumes/conf/presto/etc"
shift 1
/docker/volumes/presto-server/bin/launcher \
- -Dnode.id=${HOSTNAME} \
- -Dcatalog.config-dir=${PRESTO_CONFIG_DIRECTORY}/catalog \
- --config=${PRESTO_CONFIG_DIRECTORY}/${CONFIG}.properties \
- --jvm-config=${PRESTO_CONFIG_DIRECTORY}/jvm.config \
- --log-levels-file=${PRESTO_CONFIG_DIRECTORY}/log.properties \
+ -Dnode.id="${HOSTNAME}" \
+ -Dcatalog.config-dir="${PRESTO_CONFIG_DIRECTORY}"/catalog \
+ --config="${PRESTO_CONFIG_DIRECTORY}/${CONFIG}".properties \
+ --jvm-config="${PRESTO_CONFIG_DIRECTORY}"/jvm.config \
+ --log-levels-file="${PRESTO_CONFIG_DIRECTORY}"/log.properties \
--data-dir=/var/presto \
- $*
+ "$@"
