Merged in DCCLIP-789-review-install-dir-permissions (pull request #148)

DCCLIP-789: Make some directories writable to root group

* Make some directories writable for root group


Approved-by: Minh Tran
This commit is contained in:
Eugene Ivantsov 2024-01-18 02:30:57 +00:00
parent e6d24ab68f
commit f175a34c01
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ RUN groupadd --gid ${RUN_GID} ${RUN_GROUP} \
&& chmod -R 550 ${CONFLUENCE_INSTALL_DIR}/ \
&& chown -R ${RUN_USER}:root ${CONFLUENCE_INSTALL_DIR}/ \
&& for dir in logs temp work; do \
chmod -R 700 ${CONFLUENCE_INSTALL_DIR}/${dir}; \
chmod -R 770 ${CONFLUENCE_INSTALL_DIR}/${dir}; \
done \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${CONFLUENCE_HOME} \
&& for file in "/opt/atlassian/support /entrypoint.py /entrypoint_helpers.py /shutdown-wait.sh"; do \

View File

@ -39,7 +39,7 @@ def test_install_permissions(docker_cli, image):
for d in ['logs', 'work', 'temp']:
path = f'{get_app_install_dir(container)}/{d}'
assert container.file(path).mode == 448
assert container.file(path).mode == 504
def test_first_run_state(docker_cli, image, run_user):