Fix chmod: jre/bin/java: No such file or directory errors (#4493)

* Fix 'chmod: jre/bin/java: No such file or directory' errors

* Remove echos

* Remove duplicate quaratine in oracle-server-extra-startup-script.sh
This commit is contained in:
Chris Stewart 2022-07-11 15:04:04 -05:00 committed by GitHub
parent 1b169d8fa0
commit 5b44c074f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 10 deletions

View file

@ -1,3 +1,4 @@
#!/bin/bash
if [[ "$OS" == "OSX" ]]; then
#mac doesn't allow random binaries to be executable
@ -5,4 +6,10 @@ if [[ "$OS" == "OSX" ]]; then
xattr -d com.apple.quarantine jre/bin/java
fi
chmod +x jre/bin/java #make sure java is executable
if test -f "jre/bin/java"; then
chmod +x jre/bin/java #make sure java is executable
fi
if test -f "../jre/bin/java" ; then
chmod +x ../jre/bin/java #make sure java is executable
fi

View file

@ -1,3 +1,4 @@
#!/bin/bash
if [[ "$OS" == "OSX" ]]; then
#mac doesn't allow random binaries to be executable
@ -5,15 +6,13 @@ if [[ "$OS" == "OSX" ]]; then
xattr -d com.apple.quarantine jre/bin/java
fi
chmod +x jre/bin/java #make sure java is executable
if [[ "$OS" == "OSX" ]]; then
#mac doesn't allow random binaries to be executable
#remove the quarantine attribute so java is executable on mac
xattr -d com.apple.quarantine jre/bin/java
if test -f "jre/bin/java"; then
chmod +x jre/bin/java #make sure java is executable
fi
if test -f "../jre/bin/java" ; then
chmod +x ../jre/bin/java #make sure java is executable
fi
chmod +x jre/bin/java #make sure java is executable
get_java_no_jlink() {
if [[ -n "$JAVA_HOME" ]] && [[ -x "$JAVA_HOME/bin/java" ]]; then

View file

@ -1,10 +1,19 @@
#!/bin/bash
if [[ "$OS" == "OSX" ]]; then
#mac doesn't allow random binaries to be executable
#remove the quarantine attribute so java is executable on mac
xattr -d com.apple.quarantine jre/bin/java
fi
chmod +x jre/bin/java #make sure java is executable
if test -f "jre/bin/java"; then
chmod +x jre/bin/java #make sure java is executable
fi
if test -f "../jre/bin/java" ; then
chmod +x ../jre/bin/java #make sure java is executable
fi
chip=$(uname -m)