liuxunorg commented on a change in pull request #142: SUBMARINE-332. Fix 
submarine server database connection failure
URL: https://github.com/apache/submarine/pull/142#discussion_r363028339
 
 

 ##########
 File path: bin/common.sh
 ##########
 @@ -73,8 +73,18 @@ function download_mysql_jdbc_jar(){
     fi
     
MYSQL_JAR_URL="https://repo1.maven.org/maven2/mysql/mysql-connector-java/${MYSQL_VERSION}/mysql-connector-java-${MYSQL_VERSION}.jar";
   fi
+
   echo "Downloading mysql jdbc jar from ${MYSQL_JAR_URL}."
-  wget ${MYSQL_JAR_URL} -P "${BIN}/../lib"
+  if type wget >/dev/null 2>&1; then
+    wget ${MYSQL_JAR_URL} -P "${BIN}/../lib" --no-check-certificate
+  elif type curl >/dev/null 2>&1; then
+    curl -o "${BIN}/../lib/mysql-connector-java-${MYSQL_VERSION}.jar" 
${MYSQL_JAR_URL}
 
 Review comment:
   Okay, thanks for your reminder.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to