зеркало из https://github.com/github/vitess-gh.git
Update zksrv.sh
fix the error : no java binary found If I installed the java without yum or apt-get, but by setting the environment variable JAVA_HOME and PATH,the script with rise error :no java binary found So we should consider the java binary installed manuelly
This commit is contained in:
Родитель
f766e70112
Коммит
9582c5c2c6
|
@ -23,7 +23,7 @@ log() {
|
|||
return 0
|
||||
}
|
||||
|
||||
for java in /usr/local/bin/java /usr/bin/java; do
|
||||
for java in /usr/local/bin/java /usr/bin/java $JAVA_HOME/bin/java; do
|
||||
if [ -x "$java" ]; then
|
||||
break
|
||||
fi
|
||||
|
|
Загрузка…
Ссылка в новой задаче