Skip to content

Commit 99c2a03

Browse files
committed
fix: update NPM installation for social inbox to use root nvm directory
1 parent 2e9ef76 commit 99c2a03

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • ansible/roles/distributed_press/tasks

ansible/roles/distributed_press/tasks/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,19 +129,20 @@
129129
clone: yes
130130
update: yes
131131

132-
- name: Install NPM Dependencies for social inbox (via nvm)
132+
- name: Install NPM Dependencies for social inbox (via root nvm)
133133
when: social_inbox_enabled
134134
become: yes
135135
become_user: "{{social_inbox_user}}"
136136
shell: |
137-
export NVM_DIR="$HOME/.nvm"
137+
export NVM_DIR="/root/.nvm"
138138
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
139139
nvm use --lts
140140
cd {{social_inbox_source}}
141141
npm ci
142142
args:
143143
executable: /bin/bash
144144

145+
145146
- name: Import blocklist for social inbox
146147
when:
147148
- social_inbox_enabled

0 commit comments

Comments
 (0)