Skip to content

Commit

Permalink
Updated shell extension install to check for site-specific file
Browse files Browse the repository at this point in the history
(cherry picked from commit 280a323)
  • Loading branch information
zenmonkeykstop committed Aug 15, 2023
1 parent 25d122e commit 29ca2cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
---
- name: Check for site specific file
stat:
path: group_vars/all/site-specific
register: site_specific_file

- name: Import variables
include_vars: "group_vars/all/site-specific"
when: site_specific_file.stat.exists

- name: Check for v3 Source Interface file
stat:
Expand All @@ -12,11 +18,6 @@
path: app-journalist.auth_private
register: v3_journalist_file

- name: Check for site specific file
stat:
path: group_vars/all/site-specific
register: site_specific_file

- name: Look up v3 Source Interface URL.
command: grep -Po '.{56}\.onion' app-sourcev3-ths
changed_when: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const Domain = Gettext.domain(GETTEXT_DOMAIN)

const source_interface_address = "{{ item.0.source_interface_address }}";
const journalist_interface_address = "{{ item.0.journalist_interface_address }}";
const app_server_hostname = "{{ app_hostname }}";
const mon_server_hostname = "{{ monitor_hostname }}";
const app_server_hostname = "{{ app_hostname|default('app') }}";
const mon_server_hostname = "{{ monitor_hostname|default('mon') }}";

const _ = Domain.gettext;

Expand Down

0 comments on commit 29ca2cb

Please sign in to comment.