Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
mbologna committed Nov 28, 2024
1 parent fb5d80e commit f6688e9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 5 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/bin/bash
set -euxo pipefail
# Ensure proper permissions on the mounted data directory

if [ "$(stat -c %U /var/lib/bitlbee)" != "bitlbee" ]; then
chown -R bitlbee:nogroup /var/lib/bitlbee
echo "Directory is not owned by bitlbee. Skipping chown."
else
echo "Correct permissions detected."
fi

exec "$@"
5 changes: 5 additions & 0 deletions k8s/bitlbee-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ spec:
labels:
app: bitlbee
spec:
securityContext:
fsGroup: 1001 # The group ID for "nogroup"
containers:
- name: bitlbee
image: docker.io/mbologna/docker-bitlbee:latest
securityContext:
runAsUser: 1001 # The user ID for "bitlbee"
runAsGroup: 1001 # The group ID for "nogroup"
ports:
- containerPort: 6667
volumeMounts:
Expand Down

0 comments on commit f6688e9

Please sign in to comment.