Skip to content

Commit 2911e0f

Browse files
committed
bash needs to run the script directly not with -c
1 parent 2e660e5 commit 2911e0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/deployments.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ spec:
10411041
lifecycle:
10421042
postStart:
10431043
exec:
1044-
command: ["/bin/bash", "-c", "/post-start.sh"]
1044+
command: ["/bin/bash", "/post-start.sh"]
10451045
resources:
10461046
{{- toYaml .Values.st2actionrunner.resources | nindent 10 }}
10471047
{{- if .Values.st2actionrunner.serviceAccount.attach }}
@@ -1294,7 +1294,7 @@ spec:
12941294
lifecycle:
12951295
postStart:
12961296
exec:
1297-
command: ["/bin/bash", "-c", "/post-start.sh"]
1297+
command: ["/bin/bash", "/post-start.sh"]
12981298
resources:
12991299
requests:
13001300
memory: "5Mi"

0 commit comments

Comments
 (0)