Quote cmdline args for use in shell

Signed-off-by: Edward Evans <edward.evans@consensys.net>
pull/16/head
Edward Evans 5 years ago
parent 80d7dbb6cd
commit 37ceab3780
No known key found for this signature in database
GPG Key ID: D043D2B173BC2484
  1. 2
      templates/besu.service.j2

@ -12,7 +12,7 @@ Environment=LOG4J_CONFIGURATION_FILE={{ besu_log4j_config_file }}
Environment=BESU_OPTS={{ besu_env_opts }} Environment=BESU_OPTS={{ besu_env_opts }}
Type=simple Type=simple
{% if besu_cmdline_args %} {% 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 %} {% else %}
ExecStart=/bin/sh -c "{{ besu_current_dir }}/bin/besu --config-file={{ besu_config_dir }}/config.toml >> {{besu_log_dir}}/besu.log 2>&1" ExecStart=/bin/sh -c "{{ besu_current_dir }}/bin/besu --config-file={{ besu_config_dir }}/config.toml >> {{besu_log_dir}}/besu.log 2>&1"
{% endif %} {% endif %}

Loading…
Cancel
Save