mirror of
https://github.com/TheCase/IPMIView.app.git
synced 2025-12-10 17:19:42 +01:00
Use JAVA_HOME environment variable if set.
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -
|
set -
|
||||||
|
if [ "" = "${JAVA_HOME}" ] ; then
|
||||||
|
JAVA_HOME=/usr
|
||||||
|
fi
|
||||||
|
|
||||||
BASE_URL="https://www.supermicro.com/en/support/resources"
|
BASE_URL="https://www.supermicro.com/en/support/resources"
|
||||||
INFO_URL="${BASE_URL}/downloadcenter/smsdownload\?category\=IPMI"
|
INFO_URL="${BASE_URL}/downloadcenter/smsdownload\?category\=IPMI"
|
||||||
@@ -84,7 +87,7 @@ tar -zxf "${LOCAL_DOWNLOAD_LOCATION}"/IPMIView*.tar* --strip=1 -C ./Contents/Res
|
|||||||
{ echo "Something went wrong, check download of IPMIView archive" && exit 1; }
|
{ echo "Something went wrong, check download of IPMIView archive" && exit 1; }
|
||||||
|
|
||||||
echo "Linking 'java' and 'jre'..."
|
echo "Linking 'java' and 'jre'..."
|
||||||
ln -s /usr/bin/java Contents/Resources/IPMIView/Contents/Home/bin/java
|
ln -s "${JAVA_HOME}/bin/java" Contents/Resources/IPMIView/Contents/Home/bin/java
|
||||||
rm -rf Contents/Resources/IPMIView/jre/*
|
rm -rf Contents/Resources/IPMIView/jre/*
|
||||||
pushd Contents/Resources/IPMIView/jre/ >/dev/null &&
|
pushd Contents/Resources/IPMIView/jre/ >/dev/null &&
|
||||||
ln -s ../Contents . &&
|
ln -s ../Contents . &&
|
||||||
|
|||||||
Reference in New Issue
Block a user