Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions templates/postgres.18.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ run:
chown -R root /var/lib/postgresql/18/main
if [ ! -e /shared/postgres_data ]; then
install -d -m 0755 -o postgres -g postgres /shared/postgres_data
sudo -E -u postgres /usr/lib/postgresql/18/bin/initdb --no-data-checksums --locale-provider=builtin --locale C.UTF-8 -D /shared/postgres_data
sudo -E -u postgres /usr/lib/postgresql/18/bin/initdb --locale-provider=builtin --locale C.UTF-8 -D /shared/postgres_data
fi
find /shared/postgres_data \! -user postgres -exec chown postgres '{}' +
find /var/run/postgresql \! -user postgres -exec chown postgres '{}' +
Expand Down Expand Up @@ -133,7 +133,7 @@ run:
fi

rm -fr /shared/postgres_data_new
install -d -m 0755 -o postgres -g postgres /shared/postgres_data_new && sudo -u postgres /usr/lib/postgresql/18/bin/initdb --no-data-checksums --locale-provider=builtin --locale C.UTF-8 -D /shared/postgres_data_new || exit 0
install -d -m 0755 -o postgres -g postgres /shared/postgres_data_new && sudo -u postgres /usr/lib/postgresql/18/bin/initdb --locale-provider=builtin --locale C.UTF-8 -D /shared/postgres_data_new || exit 0
apt-get update
apt-get install -y postgresql-${PG_MAJOR_OLD} postgresql-${PG_MAJOR_OLD}-pgvector
pg_createcluster -u postgres --no-status ${PG_MAJOR_OLD} main
Expand Down
4 changes: 2 additions & 2 deletions templates/postgres.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ run:
chown -R root /var/lib/postgresql/18/main
if [ ! -e /shared/postgres_data ]; then
install -d -m 0755 -o postgres -g postgres /shared/postgres_data
sudo -E -u postgres /usr/lib/postgresql/18/bin/initdb --no-data-checksums --locale-provider=builtin --locale C.UTF-8 -D /shared/postgres_data
sudo -E -u postgres /usr/lib/postgresql/18/bin/initdb --locale-provider=builtin --locale C.UTF-8 -D /shared/postgres_data
fi
find /shared/postgres_data \! -user postgres -exec chown postgres '{}' +
find /var/run/postgresql \! -user postgres -exec chown postgres '{}' +
Expand Down Expand Up @@ -134,7 +134,7 @@ run:
fi

rm -fr /shared/postgres_data_new
install -d -m 0755 -o postgres -g postgres /shared/postgres_data_new && sudo -u postgres /usr/lib/postgresql/18/bin/initdb --no-data-checksums --locale-provider=builtin --locale C.UTF-8 -D /shared/postgres_data_new || exit 0
install -d -m 0755 -o postgres -g postgres /shared/postgres_data_new && sudo -u postgres /usr/lib/postgresql/18/bin/initdb --locale-provider=builtin --locale C.UTF-8 -D /shared/postgres_data_new || exit 0
apt-get update
apt-get install -y postgresql-${PG_MAJOR_OLD} postgresql-${PG_MAJOR_OLD}-pgvector
pg_createcluster -u postgres --no-status ${PG_MAJOR_OLD} main
Expand Down