Skip to content

Commit 240ce77

Browse files
authored
Merge pull request #2198 from craigcomstock/jdk21-for-all
fix: when installing jdk for build hosts ensure it is available for all users
2 parents a96ceb2 + bbf5ee9 commit 240ce77

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ci/linux-install-jdk21.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ install_jdk() {
2626
export JAVA_HOME="/opt/jdk-$version"
2727
export PATH=\$PATH:\$JAVA_HOME/bin
2828
EOF
29-
chown -R root:jenkins "/opt/jdk-$version"
30-
chmod -R g+rx "/opt/jdk-$version"
29+
chown -R root:root "/opt/jdk-$version"
30+
chmod -R 755 "/opt/jdk-$version"
3131
if command -v update-alternatives; then
3232
update-alternatives --install /usr/bin/java java "/opt/jdk-$version/bin/java" 9999
3333
else

0 commit comments

Comments
 (0)