Browse Source

07env-install-centos.sh

master
lizw 3 years ago
parent
commit
d720f6bada
  1. 10
      00base/07env-install-centos.sh

10
00base/07env-install-centos.sh

@ -370,11 +370,11 @@ function init:java() {
local add_profile=`echo -e "${line}JAVA_HOME=${java_path}${line}PATH=\\\$JAVA_HOME/bin:\\\$PATH${line}export JAVA_HOME PATH"` local add_profile=`echo -e "${line}JAVA_HOME=${java_path}${line}PATH=\\\$JAVA_HOME/bin:\\\$PATH${line}export JAVA_HOME PATH"`
command::exec "${host}" " command::exec "${host}" "
yum -y remove *openjdk* yum -y remove *openjdk*
if [ -d "$java_path" ]; then if [ ! -d "$java_path" ]; then
#mkdir -p ${BASE_DIR}/java mkdir -p ${BASE_DIR}/java
#wget --timeout=10 --waitretry=3 --tries=5 --retry-connrefused --no-check-certificate ${JDK_URL} -O ${BASE_DIR}/java/${JDK_FILE_NAME} wget --timeout=10 --waitretry=3 --tries=5 --retry-connrefused --no-check-certificate ${JDK_URL} -O ${BASE_DIR}/java/${JDK_FILE_NAME}
#cd ${BASE_DIR}/java cd ${BASE_DIR}/java
#tar -zxvf ${JDK_FILE_NAME} tar -zxvf ${JDK_FILE_NAME}
echo '$add_profile' >> /etc/profile echo '$add_profile' >> /etc/profile
source /etc/profile source /etc/profile
fi fi

Loading…
Cancel
Save