From b444cfee5b94410758a8ea64cab27e0c67fe5192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20A=CC=81lvaro?= Date: Mon, 17 Jun 2024 12:41:23 +0200 Subject: [PATCH] fix: Set right permissions --- assets/runtime/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/runtime/functions.sh b/assets/runtime/functions.sh index 9e43169..5917595 100755 --- a/assets/runtime/functions.sh +++ b/assets/runtime/functions.sh @@ -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."