mirror of
https://github.com/HaschekSolutions/opentrashmail.git
synced 2026-04-25 14:45:59 +03:00
[GH-ISSUE #74] /run/nginx folder missing on k8s #54
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentrashmail#54
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tctlrd on GitHub (Dec 31, 2023).
Original GitHub issue: https://github.com/HaschekSolutions/opentrashmail/issues/74
For some reason the /run/nginx folder is missing when I deploy opentrashmail on kubernetes.
This prevents nginx from starting.
nginx throws this error: "nginx: [emerg] open() "/run/nginx/nginx.pid" failed (2: No such file or directory)"
I realize that there is a command to create this folder in the Dockerfile. I am not sure why it is missing whenever I deploy...
I was able to solve the issue by adding "mkdir -p /run/nginx" to the start.sh before the "nginx" command.
https://github.com/tctlrd/opentrashmail/blob/master/docker/rootfs/start.sh#L22
If this fix could be added, that would be nice.
@geek-at commented on GitHub (Dec 31, 2023):
sure, send a pull request