Skip to content

Commit 2e5bafe

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "opensearch-dashboards: Fix permissions" into stable/yoga
2 parents 2372493 + 7a30d4d commit 2e5bafe

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

docker/opensearch/opensearch-dashboards/Dockerfile.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
77

88
{% import "macros.j2" as macros with context %}
99

10-
{{ macros.configure_user(name='opensearch', shell='/bin/bash', homedir='/usr/share/opensearch') }}
10+
{{ macros.configure_user(name='opensearch-dashboards', shell='/bin/bash', homedir='/usr/share/opensearch-dashboards') }}
1111
{{ macros.enable_extra_repos(['opensearch-dashboards']) }}
1212

1313
{% set opensearch_dashboards_packages = ['opensearch-dashboards'] %}
@@ -30,4 +30,4 @@ RUN chmod 755 /usr/local/bin/kolla_extend_start
3030
{% block opensearch_footer %}{% endblock %}
3131
{% block footer %}{% endblock %}
3232

33-
USER opensearch
33+
USER opensearch-dashboards

docker/opensearch/opensearch-dashboards/extend_start.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
22

3-
if [[ ! -d "/var/log/kolla/opensearch" ]]; then
4-
mkdir -p /var/log/kolla/opensearch
3+
if [[ ! -d "/var/log/kolla/opensearch-dashboards" ]]; then
4+
mkdir -p /var/log/kolla/opensearch-dashboards
55
fi
6-
if [[ $(stat -c %a /var/log/kolla/opensearch) != "755" ]]; then
7-
chmod 755 /var/log/kolla/opensearch
6+
if [[ $(stat -c %a /var/log/kolla/opensearch-dashboards) != "755" ]]; then
7+
chmod 755 /var/log/kolla/opensearch-dashboards
88
fi
99

1010
export DASHBOARDS_HOME=/usr/share/opensearch-dashboards

kolla/common/config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,10 @@
960960
'opensearch-user': {
961961
'uid': 42490,
962962
'gid': 42490,
963+
},
964+
'opensearch-dashboards-user': {
965+
'uid': 42492,
966+
'gid': 42492,
963967
}
964968
}
965969

0 commit comments

Comments
 (0)