Skip to content

Commit 6e11c17

Browse files
committed
fix(nx-cloud): fix permission issue with Java security script
This change fixes the permission denied error when running the Java security script by adding chmod +x to the command before execution. The script is now properly made executable at runtime. The fix is applied to both nx-api-deployment and aggregator-cron templates to ensure consistent behavior across components. This is part of the work to make Java security path detection more robust across different Corretto versions and distributions.
1 parent c87fea2 commit 6e11c17

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

charts/nx-cloud/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: nx-cloud
33
description: Nx Cloud Helm Chart
44
type: application
5-
version: 0.16.0-rc.1
5+
version: 0.16.0-rc.2
66
maintainers:
77
- name: nx
88
url: "https://nx.app/"

charts/nx-cloud/templates/nx-cloud-aggregator-cron.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ spec:
1010
- command:
1111
- sh
1212
- -c
13-
- /scripts/find-java-security.sh
13+
- |
14+
chmod +x /scripts/find-java-security.sh && /scripts/find-java-security.sh
1415
image: {{ include "nxCloud.images.aggregator.image" . }}
1516
name: copy-cacerts
1617
{{- if .Values.aggregator.securityContext }}

charts/nx-cloud/templates/nx-cloud-nx-api-deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ spec:
3636
- command:
3737
- sh
3838
- -c
39-
- /scripts/find-java-security.sh
39+
- |
40+
chmod +x /scripts/find-java-security.sh && /scripts/find-java-security.sh
4041
image: {{ include "nxCloud.images.nxApi.image" . }}
4142
name: copy-cacerts
4243
{{- if .Values.nxApi.securityContext }}

0 commit comments

Comments
 (0)