mirror of
https://github.com/neondatabase/neon.git
synced 2026-06-04 22:10:39 +00:00
add chown-pgdata
This commit is contained in:
@@ -1991,7 +1991,8 @@ RUN systemctl enable \
|
||||
pgbouncer \
|
||||
postgres_exporter sql_exporter sql_exporter-autoscaling \
|
||||
local_proxy \
|
||||
compute_ctl
|
||||
compute_ctl \
|
||||
chown-pgdata
|
||||
|
||||
ENTRYPOINT ["/sbin/init"]
|
||||
|
||||
|
||||
12
compute/etc/systemd/system/chown-pgdata.service
Normal file
12
compute/etc/systemd/system/chown-pgdata.service
Normal file
@@ -0,0 +1,12 @@
|
||||
# When running under neonvm-guest a separate disk is mounted to
|
||||
# /var/db/postgres/compute. Make it owned by the postgres user.
|
||||
[Unit]
|
||||
Description=Change owner of /var/db/postgres/compute to postgres
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=chown postgres:postgres /var/db/postgres/compute
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=compute_ctl.service
|
||||
Reference in New Issue
Block a user