Skip to content

Commit d334026

Browse files
authored
Merge pull request iiab#3977 from holta/iiab-diagnostics_more_resilient
iiab-diagnostics more resilient
2 parents 67fe757 + ae077c3 commit d334026

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

roles/0-init/tasks/main.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@
5252
state: link
5353
#force: yes
5454

55-
- name: Create globally-writable directory /etc/iiab/diag (0777) so non-root users can run 'iiab-diagnostics'
56-
file:
57-
state: directory
58-
path: /etc/iiab/diag
59-
mode: '0777'
60-
6155

6256
- name: Pre-check that IIAB's "XYZ_install" + "XYZ_enabled" vars (1) are defined, (2) are boolean-not-string variables, and (3) contain plausible values. Also checks that "XYZ_install" is True when "XYZ_installed" is defined.
6357
include_tasks: validate_vars.yml

scripts/iiab-diagnostics

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ if [[ $nickname == "" ]]; then
3434
fi
3535

3636
# Build up a meaningful shared filename for DEV / IMPLEM / LEARNING team(s)
37+
mkdir -p /etc/iiab/diag
38+
chmod 777 /etc/iiab/diag # So non-root users can run 'iiab-diagnostics'
3739
outfile=/etc/iiab/diag/${IIAB_RELEASE}_${OS_VER}_${YMDT}_$nickname
3840

3941
# System "snapshots" (time-stamped output from this 'iiab-diagnostics' command)

0 commit comments

Comments
 (0)