Skip to content

Commit

Permalink
Fix: entrypoint.sh perms
Browse files Browse the repository at this point in the history
  • Loading branch information
mbologna committed Nov 28, 2024
1 parent f6688e9 commit a26e337
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#!/bin/bash
set -euxo pipefail

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

exec "$@"

0 comments on commit a26e337

Please sign in to comment.