Page MenuHomeDevCentral

Improve shell scripts robustness
ClosedPublic

Authored by aceppaluni on Aug 19 2024, 19:03.
Tags
None
Referenced Files
F3777783: D3422.id8834.diff
Mon, Nov 25, 02:34
F3777782: D3422.id8833.diff
Mon, Nov 25, 02:34
F3777781: D3422.id8832.diff
Mon, Nov 25, 02:34
F3777779: D3422.id8825.diff
Mon, Nov 25, 02:34
F3777778: D3422.id8824.diff
Mon, Nov 25, 02:34
F3777776: D3422.id8823.diff
Mon, Nov 25, 02:34
F3777722: D3422.id.diff
Mon, Nov 25, 02:22
F3777706: D3422.diff
Mon, Nov 25, 02:17
Subscribers
None

Details

Summary

Make scripts more compliant with shellcheck linter.

Ref T1410

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

aceppaluni created this revision.

The true revision will be comming in next day, helping angelina to try arc diff and arcanist

This revision now requires changes to proceed.Aug 19 2024, 19:07

reset author configuration

roles/core/certificates/files/letsencrypt-renewal.sh is sensible and so to test in different scenario, including a scenario where nginx returns 0 but raises a warning in stderr.

The other fixes look good to me.

dereckson added inline comments.
roles/core/certificates/files/letsencrypt-renewal.sh
22

We reproduced the test case documented in D372:

$ [ "$nginx_return_code" -eq 0 ] && echo "${nginx_output}" | grep warn
nginx: [warn] conflicting server name "forms.nasqueron.org" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "forms.nasqueron.org" on [::]:80, ignored
nginx: [warn] conflicting server name "forms.nasqueron.org" on 0.0.0.0:443, ignored
nginx: [warn] conflicting server name "forms.nasqueron.org" on [::]:443, ignored
This revision is now accepted and ready to land.Aug 27 2024, 17:19
dereckson retitled this revision from update shellcheck to Improve shell scripts robustness.Aug 27 2024, 17:20
dereckson edited the summary of this revision. (Show Details)
This revision was automatically updated to reflect the committed changes.