Skip to content

Commit 297a3c2

Browse files
committed
fix: symbolic linking removal
1 parent 3f53f90 commit 297a3c2

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

ansible/tasks/stage2-setup-postgres.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -217,19 +217,8 @@
217217
recurse: yes
218218
when: stage2_nix
219219

220-
- name: Check psql_version and run postgis linking if not oriole-xx
221-
block:
222-
- name: Check if psql_version is psql_orioledb-17
223-
set_fact:
224-
is_psql_oriole: "{{ psql_version == 'psql_orioledb-17' }}"
225-
226-
- name: Recursively create symbolic links and set permissions for the contrib/postgis-* dir
227-
shell: >
228-
sudo mkdir -p /usr/lib/postgresql/share/postgresql/contrib && \
229-
sudo find /var/lib/postgresql/.nix-profile/share/postgresql/contrib/ -mindepth 1 -type d -exec sh -c 'for dir do sudo ln -s "$dir" "/usr/lib/postgresql/share/postgresql/contrib/$(basename "$dir")"; done' sh {} + \
230-
&& chown -R postgres:postgres "/usr/lib/postgresql/share/postgresql/contrib/"
231-
become: yes
232-
when: stage2_nix and not is_psql_oriole
220+
# PostGIS contrib linking removed - PostGIS doesn't install to contrib directory
221+
# It installs extensions to /share/postgresql/extension/ which is already linked above
233222

234223
- name: Create symbolic links from /var/lib/postgresql/.nix-profile/share/postgresql/timezonesets to /usr/lib/postgresql/share/postgresql/timeszonesets
235224
shell: >-

0 commit comments

Comments
 (0)