Skip to content

Commit

Permalink
update-ca-bundle: really avoid failure on missing directory
Browse files Browse the repository at this point in the history
While no problem was observed while XAPI launches this script, and
there is little reason to launch it while the certs dir does not exist
(except maybe for testing purposes), there is existing logic to create
/etc/stunnel, which when needed will still let `find` fail for lack of
/etc/stunnel/certs.

Signed-off-by: Yann Dirson <[email protected]>
  • Loading branch information
ydirson committed Aug 7, 2024
1 parent 8fe3cdc commit 44b7cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update-ca-bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

set -e

mkdir -p /etc/stunnel
mkdir -p /etc/stunnel/certs
find /etc/stunnel/certs -name '*.pem' | xargs cat > /etc/stunnel/xapi-stunnel-ca-bundle.pem.tmp
mv /etc/stunnel/xapi-stunnel-ca-bundle.pem.tmp /etc/stunnel/xapi-stunnel-ca-bundle.pem

0 comments on commit 44b7cdc

Please sign in to comment.