mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-13 11:35:40 +01:00
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:
parent
1b169d8fa0
commit
5b44c074f1
3 changed files with 25 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue