Fix slidge permission drama

This commit is contained in:
Oliver Hattshire 2025-10-20 11:25:09 -03:00
parent 936153fa99
commit 96c869b5e0
3 changed files with 13 additions and 1 deletions

View file

@ -37,7 +37,7 @@ services:
- slidge.env
whatsapp:
image: codeberg.org/slidge/slidge-whatsapp:latest-amd64
build: ./images/slidge-whatsapp
restart: always
environment:
- SLIDGE_JID=whatsapp

View file

@ -0,0 +1,7 @@
FROM codeberg.org/slidge/slidge-whatsapp:latest-amd64
USER root
COPY --chmod=555 entrypoint.sh /entrypoint.sh
ENTRYPOINT "/entrypoint.sh"

View file

@ -0,0 +1,5 @@
#!/bin/bash
chown -fR slidge:slidge /var/lib/slidge
runuser -u slidge slidge-whatsapp $@ 2>&1