Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: move temporary path to data directory #519

Merged
merged 1 commit into from
Aug 22, 2022
Merged

fix: move temporary path to data directory #519

merged 1 commit into from
Aug 22, 2022

Conversation

rhizoome
Copy link

@rhizoome rhizoome commented Aug 22, 2022

Since we hide /tmp from LibreOffice processes we can't use /tmp for temporary files. I first used $MEDIA_ROOT/__convert__, but this directory is not an internal directory as I expected (it was a bad idea), so I moved __convert__ to /var/lib/document_merge_service/data/tmp ($DATABASE_DIR/tmp). The Dockerfile will set the rights correctly: shared between the dms-user and root.

@rhizoome rhizoome requested review from anehx and JohnL17 and removed request for anehx and JohnL17 August 22, 2022 11:14
Copy link
Member

@anehx anehx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's name it /tmp like everywhere else. Otherwise, LGTM

Since we hide /tmp from LibreOffice processes we can't use /tmp for temporary
files. I first used $MEDIA_ROOT/__convert__, but this directory is not an
internal directory as I expected (it was a bad idea), so I moved __convert__ to
/var/lib/document_merge_service/data/tmp ($DATABASE_DIR/tmp). The Dockerfile
will set the rights correctly: shared between the dms-user and root.
@rhizoome rhizoome merged commit 0cf779c into adfinis:main Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants