fix(compose): Fix bash var quoting

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

View File

@@ -125,7 +125,7 @@ Create ZFS datasets and set permissions as needed.
{%- set components = cookiecutter.__component_list_slug.split(',') -%}
{% for component in components %}
{%- 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 %}
{%- endfor %}
```