Skip to content

Commit 6bb2140

Browse files
committed
[OPENJDK-3935] Fix script permissions for artifacts
https://issues.redhat.com/browse/OPENJDK-3935 Signed-off-by: Jonathan Dowland <[email protected]>
1 parent 64575a6 commit 6bb2140

File tree

7 files changed

+27
-0
lines changed

7 files changed

+27
-0
lines changed

modules/jvm/configure.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
# OPENJDK-3695: force +x for scripts
5+
chmod 0755 /opt/jboss/container/java/jvm/*

modules/jvm/module.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ artifacts:
99
- path: artifacts/jvm
1010
dest: /opt/jboss/container/java/jvm
1111

12+
execute:
13+
- script: configure.sh
14+
1215
modules:
1316
install:
1417
- name: jboss.container.user

modules/maven/s2i/configure.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
# OPENJDK-3695: force +x for scripts
5+
chmod 0755 /usr/libexec/s2i/save-artifacts

modules/maven/s2i/module.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ modules:
3030
- name: jboss.container.maven.default
3131
- name: jboss.container.util.logging
3232

33+
execute:
34+
- script: configure.sh
35+
3336
packages:
3437
install:
3538
- tar

modules/run/configure.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ else
1717
javasecurity="${JAVA_HOME}/conf/security/java.security"
1818
fi
1919
sed -i 's/\(networkaddress.cache.negative.ttl\)=[0-9]\+$/\1=0/' "$javasecurity"
20+
21+
# OPENJDK-3695: force +x for scripts
22+
chmod 0755 /opt/jboss/container/java/run/run-java.sh

modules/s2i/bash/configure.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
# OPENJDK-3695: force +x for scripts
5+
chmod 0755 /usr/local/s2i/{assemble,run,usage}

modules/s2i/bash/module.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ artifacts:
2323
dest: /usr/local/s2i
2424
- path: artifacts/opt
2525
dest: /opt/jboss/container/java/s2i
26+
27+
execute:
28+
- script: configure.sh

0 commit comments

Comments
 (0)