From 37ceab3780bf4fedf5174df9acda41ab97a08f23 Mon Sep 17 00:00:00 2001 From: Edward Evans Date: Mon, 11 May 2020 16:35:15 +1000 Subject: [PATCH] Quote cmdline args for use in shell Signed-off-by: Edward Evans --- templates/besu.service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/besu.service.j2 b/templates/besu.service.j2 index 65ff9cd..610265c 100644 --- a/templates/besu.service.j2 +++ b/templates/besu.service.j2 @@ -12,7 +12,7 @@ Environment=LOG4J_CONFIGURATION_FILE={{ besu_log4j_config_file }} Environment=BESU_OPTS={{ besu_env_opts }} Type=simple {% if besu_cmdline_args %} -ExecStart=/bin/sh -c "{{ besu_current_dir }}/bin/besu --config-file={{ besu_config_dir }}/config.toml {{ besu_cmdline_args }} >> {{besu_log_dir}}/besu.log 2>&1" +ExecStart=/bin/sh -c "{{ besu_current_dir }}/bin/besu --config-file={{ besu_config_dir }}/config.toml {{ besu_cmdline_args|quote }} >> {{besu_log_dir}}/besu.log 2>&1" {% else %} ExecStart=/bin/sh -c "{{ besu_current_dir }}/bin/besu --config-file={{ besu_config_dir }}/config.toml >> {{besu_log_dir}}/besu.log 2>&1" {% endif %}