Skip to content

Commit

Permalink
fix: Set right permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
cdalvaro committed Jun 20, 2024
1 parent 69e8633 commit b444cfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/runtime/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ function setup_salt_keys() {
log_info "Updating '${key_file}' key permissions ..."

local mode=
[[ "${key_file}" =~ .*\.pem$ ]] && mode=644 || mode=400
[[ "${key_file}" =~ .*\.pem$ ]] && mode=400 || mode=644

chmod "${mode}" "${key_file}" >/dev/null 2>&1 ||
log_warn " There was an issue updating permissions. However, services may work as expected."
Expand Down

0 comments on commit b444cfe

Please sign in to comment.