feat: complete lab 7 for grade 4
Skeleton contracts / contracts (pull_request) Blocked by required conditions
Skeleton contracts / contracts (pull_request) Blocked by required conditions
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
install -m 0600 -o postgres -g postgres /run/identity/server.key /run/postgres-tls/server.key
|
||||
install -m 0644 -o postgres -g postgres /run/identity/server.crt /run/postgres-tls/server.crt
|
||||
# Execute the bind-mounted script through sh. Docker Desktop may mount it noexec.
|
||||
printf '%s\n' '#!/bin/sh' 'exec /bin/sh /lab/init-roles.sh' \
|
||||
> /docker-entrypoint-initdb.d/10-roles.sh
|
||||
chmod 0755 /docker-entrypoint-initdb.d/10-roles.sh
|
||||
exec docker-entrypoint.sh postgres -c ssl=on \
|
||||
-c ssl_cert_file=/run/postgres-tls/server.crt \
|
||||
-c ssl_key_file=/run/postgres-tls/server.key \
|
||||
-c ssl_min_protocol_version=TLSv1.2 \
|
||||
-c hba_file=/lab/pg_hba.conf -c password_encryption=scram-sha-256
|
||||
Reference in New Issue
Block a user