Open EugenKon opened 4 months ago
Another example from my draft:
+ cmd='bash -c '\''source ${NOMAD_ALLOC_DIR}/creds.env; backup'\'''
+ nomad alloc exec -task postgres-task a4ecf71b-3a7e-5a3b-cabd-2df187852011 bash -c ''\''source' '${NOMAD_ALLOC_DIR}/creds.env;' 'backup'\'''
Notice how single '
is doubled.
Consul Template version
consul-template v0.37.6 (358ff54)
Configuration
Debug output
Expected behavior
The command should be:
Actual behavior
Steps to reproduce
Thoughts
Also it could be
Notice, in the case above the string is
'source ${NOMAD_ALLOC_DIR}/creds.env; backup'
For the template:It should be the same for the case when I used $cmd.