sync public allowlist from private myoffice
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
# Create pgpass inside the container (mode 0600). Bind-mounted files from Windows
|
||||
# cannot satisfy pgAdmin's permission check.
|
||||
set -eu
|
||||
|
||||
PASSFILE=/var/lib/pgadmin/pgpass
|
||||
printf '%s\n' 'postgres:5432:*:myoffice:myoffice' > "$PASSFILE"
|
||||
chown 5050:0 "$PASSFILE" 2>/dev/null || true
|
||||
chmod 600 "$PASSFILE"
|
||||
|
||||
exec /entrypoint.sh "$@"
|
||||
Reference in New Issue
Block a user