Skip to content

Commit

Permalink
[pki] Fix missing quotes causing invalid directory creation
Browse files Browse the repository at this point in the history
(cherry picked from commit f72d17c)
  • Loading branch information
Michael Harder authored and drybjed committed Apr 3, 2023
1 parent 2553f74 commit 631dadf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ General
correctly. After that re-run the :ref:`debops.pki` role on the host to
re-create che realms.

- Path of the Root CA directory on the Ansible Controller is quoted in the
:file:`pki-authority` script to prevent wrong directory creation.

:ref:`debops.preseed` role
''''''''''''''''''''''''''

Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/pki/files/secret/pki/lib/pki-authority
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ initialize_environment () {
config["private_file_mode"]="600"

# shellcheck disable=SC2174
test -d ${config['pki_root']} || mkdir -p -m ${config['public_dir_mode']} ${config['pki_root']}
test -d "${config['pki_root']}" || mkdir -p -m ${config['public_dir_mode']} "${config['pki_root']}"
}

enter_authority () {
Expand Down

0 comments on commit 631dadf

Please sign in to comment.