mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-24 06:57:51 +01:00
If DISABLE_JLINK
set, don't try to chmod jre/bin/java
(#4651)
* If DISABLE_JLINK set, don't try to chmod jre/bin/java * Do it for oracle server as well
This commit is contained in:
parent
9afab28d50
commit
2001e86ab9
2 changed files with 33 additions and 29 deletions
|
@ -1,21 +1,24 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if test -f "jre/bin/java"; then
|
if [[ -z "$DISABLE_JLINK" ]]; then
|
||||||
if [[ "$OS" == "OSX" ]]; then
|
if test -f "jre/bin/java"; then
|
||||||
#mac doesn't allow random binaries to be executable
|
if [[ "$OS" == "OSX" ]]; then
|
||||||
#remove the quarantine attribute so java is executable on mac
|
#mac doesn't allow random binaries to be executable
|
||||||
xattr -d com.apple.quarantine jre/bin/java
|
#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
|
||||||
fi
|
fi
|
||||||
chmod +x jre/bin/java #make sure java is executable
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test -f "../jre/bin/java" ; then
|
|
||||||
if [[ "$OS" == "OSX" ]]; then
|
if test -f "../jre/bin/java" ; then
|
||||||
#mac doesn't allow random binaries to be executable
|
if [[ "$OS" == "OSX" ]]; then
|
||||||
#remove the quarantine attribute so java is executable on mac
|
#mac doesn't allow random binaries to be executable
|
||||||
xattr -d com.apple.quarantine ../jre/bin/java
|
#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
|
||||||
fi
|
fi
|
||||||
chmod +x ../jre/bin/java #make sure java is executable
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
get_java_no_jlink() {
|
get_java_no_jlink() {
|
||||||
|
|
|
@ -1,27 +1,28 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if test -f "jre/bin/java"; then
|
|
||||||
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
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test -f "../jre/bin/java" ; then
|
if [[ -z "$DISABLE_JLINK" ]]; then
|
||||||
if [[ "$OS" == "OSX" ]]; then
|
if test -f "jre/bin/java"; then
|
||||||
#mac doesn't allow random binaries to be executable
|
if [[ "$OS" == "OSX" ]]; then
|
||||||
#remove the quarantine attribute so java is executable on mac
|
#mac doesn't allow random binaries to be executable
|
||||||
xattr -d com.apple.quarantine ../jre/bin/java
|
#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
|
||||||
fi
|
fi
|
||||||
chmod +x ../jre/bin/java #make sure java is executable
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
if test -f "../jre/bin/java" ; then
|
||||||
|
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
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
chip=$(uname -m)
|
chip=$(uname -m)
|
||||||
|
|
||||||
|
|
||||||
get_java_no_jlink() {
|
get_java_no_jlink() {
|
||||||
if [[ -n "$JAVA_HOME" ]] && [[ -x "$JAVA_HOME/bin/java" ]]; then
|
if [[ -n "$JAVA_HOME" ]] && [[ -x "$JAVA_HOME/bin/java" ]]; then
|
||||||
echo "$JAVA_HOME/bin/java"
|
echo "$JAVA_HOME/bin/java"
|
||||||
|
|
Loading…
Add table
Reference in a new issue