You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- check java installation and display an error message if it's not available
- use rsync instead of cp to avoid long waiting time without display
(cherry picked from commit 0d3729a)
Copy file name to clipboardExpand all lines: tools/install.sh
+15-4Lines changed: 15 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,19 @@
3
3
if [[ $(id -u)-ne 0 ]] ;thenecho"Please run the installation script as root";exit 1 ;fi
4
4
5
5
SCRIPT_DIR="$(cd"$(dirname "$0")";pwd -P )"
6
+
CURRENT_PADIR="$(dirname "$SCRIPT_DIR")"
7
+
PA_FOLDER_NAME="$(basename "$CURRENT_PADIR")"
8
+
9
+
# checking java installation
10
+
11
+
if [[ "$JAVA_HOME"=="" ]];then
12
+
if which java 2&> /dev/null ;then
13
+
if [ !-f"$CURRENT_PADIR/jre/bin/java" ];then
14
+
echo"JAVA_HOME is not set, no 'java' command could be found in your PATH, and this ProActive distribution does not contain an embedded jre, please install a JRE or JDK.";exit 1 ;
0 commit comments