mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-06-01 13:50:47 +00:00
c2265c3f11
It was useless to create a *-permissions job for every application. Instead, we create a single "permissions" service. It can be extended via the "docker-compose-permissions-command" patch.
9 lines
380 B
Bash
9 lines
380 B
Bash
#! /bin/sh
|
|
setowner $OPENEDX_USER_ID /mounts/lms /mounts/cms /mounts/openedx
|
|
{% if RUN_ELASTICSEARCH %}setowner 1000 /mounts/elasticsearch{% endif %}
|
|
{% if RUN_MONGODB %}setowner 999 /mounts/mongodb{% endif %}
|
|
{% if RUN_MYSQL %}setowner 999 /mounts/mysql{% endif %}
|
|
{% if RUN_REDIS %}setowner 1000 /mounts/redis{% endif %}
|
|
|
|
{{ patch("local-docker-compose-permissions-command") }}
|