Skip to content

Commit

Permalink
fix: some programs are looking for items in /usr/bin
Browse files Browse the repository at this point in the history
  • Loading branch information
samrose committed May 14, 2024
1 parent 741fde9 commit 7dedb19
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions ansible-nix/tasks/stage2/stage2-setup-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@
- "/home/postgres/.nix-profile/bin/*"
become: yes

- name: Create symbolic links from /home/postgres/.nix-profile/bin to /usr/bin
file:
src: "{{ item }}"
dest: "/usr/bin/{{ item | basename }}"
state: link
with_fileglob:
- "/home/postgres/.nix-profile/bin/*"
become: yes

- name: Create symbolic links from /home/postgres/.nix-profile/share/postgresql to /usr/lib/postgresql/share/postgresql
file:
Expand Down
2 changes: 1 addition & 1 deletion common-nix.vars.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
postgres-version = "15.6.1.23-nix-staged"
postgres-version = "15.6.1.24-nix-staged"

0 comments on commit 7dedb19

Please sign in to comment.