From 63c8fbac29e2118e244682554d08e798bcdf2c5b Mon Sep 17 00:00:00 2001 From: Yaroslav Rogov Date: Tue, 1 Jun 2021 14:24:11 +0300 Subject: [PATCH] fix: Remove - flag from su in riak startup script --- rel/files/riak | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rel/files/riak b/rel/files/riak index 70fef3db6..8cefef613 100755 --- a/rel/files/riak +++ b/rel/files/riak @@ -39,7 +39,7 @@ else fi case "$1" in start|console|foreground) - su - riak -c "RELX_CONFIG_PATH=${RELX_CONFIG_PATH} VMARGS_PATH=${VMARGS_PATH} RUNNER_LOG_DIR=${RUNNER_LOG_DIR} PIPE_DIR=${PIPE_DIR} ${COMMAND} ${*} -pa {{platform_lib_dir}}/patches" + su riak -c "RELX_CONFIG_PATH=${RELX_CONFIG_PATH} VMARGS_PATH=${VMARGS_PATH} RUNNER_LOG_DIR=${RUNNER_LOG_DIR} PIPE_DIR=${PIPE_DIR} ${COMMAND} ${*} -pa {{platform_lib_dir}}/patches" ;; debug) # Drop the "debug" from the args as we're going to directly call riak-debug now @@ -49,9 +49,7 @@ else ;; *) ESCAPED_ARGS=`echo "$@" | sed -e 's/\([\\\(\\\){}"\x27]\)/\\\\\1/g'` - su - riak -c "RELX_CONFIG_PATH=${RELX_CONFIG_PATH} VMARGS_PATH=${VMARGS_PATH} RUNNER_LOG_DIR=${RUNNER_LOG_DIR} PIPE_DIR=${PIPE_DIR} ${COMMAND} ${ESCAPED_ARGS}" + su riak -c "RELX_CONFIG_PATH=${RELX_CONFIG_PATH} VMARGS_PATH=${VMARGS_PATH} RUNNER_LOG_DIR=${RUNNER_LOG_DIR} PIPE_DIR=${PIPE_DIR} ${COMMAND} ${ESCAPED_ARGS}" ;; esac fi - -