fix(compose): Fix bash var quoting

This commit is contained in:
hygienic-books 2023-10-08 18:35:10 +02:00
parent ab9b1009cb
commit 117627889f
3 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ Create ZFS datasets and set permissions as needed.
* Change ownership * Change ownership
``` ```
chown -R 1000:1000 '/opt/docker-data/grafana-${COMPOSE_CTX}/grafana/data/'{*,.*} chown -R 1000:1000 '/opt/docker-data/grafana-'"${COMPOSE_CTX}"'/grafana/data/'*
``` ```
## Additional files ## Additional files

View File

@ -90,7 +90,7 @@ Create ZFS datasets and set permissions as needed.
* Change ownership * Change ownership
``` ```
chown -R 1000:1000 '/opt/docker-data/vault-${COMPOSE_CTX}/vault/data/'{*,.*} chown -R 1000:1000 '/opt/docker-data/vault-'"${COMPOSE_CTX}"'/vault/data/'*
``` ```
## Additional files ## Additional files

View File

@ -125,7 +125,7 @@ Create ZFS datasets and set permissions as needed.
{%- set components = cookiecutter.__component_list_slug.split(',') -%} {%- set components = cookiecutter.__component_list_slug.split(',') -%}
{% for component in components %} {% for component in components %}
{%- if loop.first %} {%- if loop.first %}
chown -R 1000:1000 '/opt/docker-data/{{ cookiecutter.__service_slug }}-${COMPOSE_CTX}/{{ cookiecutter.__service_slug }}/data/'{*,.*} chown -R 1000:1000 '/opt/docker-data/{{ cookiecutter.__service_slug }}-'"${COMPOSE_CTX}"'/{{ cookiecutter.__service_slug }}/data/'*
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}
``` ```