Fix slidge permission drama
This commit is contained in:
parent
936153fa99
commit
96c869b5e0
3 changed files with 13 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ services:
|
||||||
- slidge.env
|
- slidge.env
|
||||||
|
|
||||||
whatsapp:
|
whatsapp:
|
||||||
image: codeberg.org/slidge/slidge-whatsapp:latest-amd64
|
build: ./images/slidge-whatsapp
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- SLIDGE_JID=whatsapp
|
- SLIDGE_JID=whatsapp
|
||||||
|
|
|
||||||
7
images/slidge-whatsapp/Dockerfile
Normal file
7
images/slidge-whatsapp/Dockerfile
Normal 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"
|
||||||
|
|
||||||
5
images/slidge-whatsapp/entrypoint.sh
Normal file
5
images/slidge-whatsapp/entrypoint.sh
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
chown -fR slidge:slidge /var/lib/slidge
|
||||||
|
|
||||||
|
runuser -u slidge slidge-whatsapp $@ 2>&1
|
||||||
Loading…
Add table
Add a link
Reference in a new issue