Skip to content

Commit 2011eaa

Browse files
committed
Revert "[OPENJDK-3655] change script permissions to permit o+x"
This reverts commit 20a5342.
1 parent 6cc4abb commit 2011eaa

File tree

50 files changed

+190
-67
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+190
-67
lines changed

modules/jdk/17/configure.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
# Configure module
33
set -e
44

5+
SCRIPT_DIR=$(dirname $0)
6+
ARTIFACTS_DIR=${SCRIPT_DIR}/artifacts
7+
8+
chown -R $USER:root $SCRIPT_DIR
9+
chmod -R ug+rwX $SCRIPT_DIR
10+
chmod ug+x ${ARTIFACTS_DIR}/opt/jboss/container/openjdk/jdk/*
11+
12+
pushd ${ARTIFACTS_DIR}
13+
cp -pr * /
14+
popd
15+
516
# Set this JDK as the alternative in use
617
_arch="$(uname -i)"
718
alternatives --set java java-17-openjdk.${_arch}

modules/jdk/17/module.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,3 @@ modules:
3333

3434
execute:
3535
- script: configure.sh
36-
37-
artifacts:
38-
- path: artifacts/jvm-options
39-
dest: /opt/jboss/container/openjdk/jdk

modules/jdk/21/configure.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
# Configure module
33
set -e
44

5+
SCRIPT_DIR=$(dirname $0)
6+
ARTIFACTS_DIR=${SCRIPT_DIR}/artifacts
7+
8+
chown -R $USER:root $SCRIPT_DIR
9+
chmod -R ug+rwX $SCRIPT_DIR
10+
chmod ug+x ${ARTIFACTS_DIR}/opt/jboss/container/openjdk/jdk/*
11+
12+
pushd ${ARTIFACTS_DIR}
13+
cp -pr * /
14+
popd
15+
516
# Set this JDK as the alternative in use
617
_arch="$(uname -i)"
718
alternatives --set java java-21-openjdk.${_arch}

modules/jdk/21/module.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,3 @@ modules:
3333

3434
execute:
3535
- script: configure.sh
36-
37-
artifacts:
38-
- path: artifacts/jvm-options
39-
dest: /opt/jboss/container/openjdk/jdk

modules/jre/17/configure.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
#!/bin/sh
2+
# Configure module
23
set -e
34

5+
SCRIPT_DIR=$(dirname $0)
6+
echo $SCRIPT_DIR
7+
ARTIFACTS_DIR=${SCRIPT_DIR}/artifacts
8+
echo $ARTIFACTS_DIR
9+
10+
chown -R $USER:root $SCRIPT_DIR
11+
chmod -R ug+rwX $SCRIPT_DIR
12+
chmod ug+x ${ARTIFACTS_DIR}/opt/jboss/container/openjdk/jre/*
13+
14+
pushd ${ARTIFACTS_DIR}
15+
cp -pr * /
16+
popd
17+
418
# Set this JDK as the alternative in use
519
_arch="$(uname -i)"
620
alternatives --set java java-17-openjdk.${_arch}

modules/jre/17/module.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,3 @@ modules:
3333

3434
execute:
3535
- script: configure.sh
36-
37-
artifacts:
38-
- path: artifacts/jvm-options
39-
dest: /opt/jboss/container/openjdk/jre

0 commit comments

Comments
 (0)