Skip to content

Fix permissions for OpenShift#143

Merged
colisee merged 1 commit intoLibreBooking:masterfrom
ikke-t:openshift
Feb 7, 2026
Merged

Fix permissions for OpenShift#143
colisee merged 1 commit intoLibreBooking:masterfrom
ikke-t:openshift

Conversation

@ikke-t
Copy link
Collaborator

@ikke-t ikke-t commented Feb 6, 2026

Hi,

considering the OpenShift case, where uid is random, and gid is root.

I modified this a bit.

  1. First of all, the cron jobs don't need to be writeable in container, so I removed write from group root.

  2. I removed recursive group write persmission for the all html files. It's too wide permission.

  3. I add upload reservations dir for the reservation images so that we can give proper permissions to it.

  4. I add write permission for root group for cache (tpl_c), config dir where the config link will be done, and also image uploads for generic and reservation resources.

I tested this by building it with podman:

podman build --cache-ttl=0 . -t librebooking-ocp:v4.1.0 --build-arg APP_GH_REF=v4.1.0

both with x86_64 and arm64.

I also tested the image both with podman on x86_64 Fedora 43, and microshift on rapsberrypi 4 for arm openshift. Seems to work fine.

@colisee colisee self-assigned this Feb 7, 2026
@colisee colisee added the enhancement New feature or request label Feb 7, 2026
@colisee colisee merged commit 6622f2e into LibreBooking:master Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants