mirror of
https://github.com/chatopera/cosin.git
synced 2025-07-11 20:17:03 +08:00
https://github.com/chatopera/cskefu/issues/384 update JDK Url
This commit is contained in:
parent
830d5760f3
commit
03db35ad81
@ -6,13 +6,18 @@
|
|||||||
# constants
|
# constants
|
||||||
baseDir=$(cd `dirname "$0"`;pwd)
|
baseDir=$(cd `dirname "$0"`;pwd)
|
||||||
JDKNAME=java-1.8.0-amazon-corretto-jdk.deb
|
JDKNAME=java-1.8.0-amazon-corretto-jdk.deb
|
||||||
|
## fast download with internal addr
|
||||||
|
## replace JDKURL when builing outside chatopera machines, java-1.8.0-amazon-corretto-jdk_8.212.04-2_amd64.deb can be download from Amazon Official Site.
|
||||||
|
## https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/downloads-list.html
|
||||||
|
JDKURL=http://192.168.2.217:30080/vendors/java/java-1.8.0-amazon-corretto-jdk_8.212.04-2_amd64.deb
|
||||||
|
|
||||||
# functions
|
# functions
|
||||||
|
|
||||||
# main
|
# main
|
||||||
[ -z "${BASH_SOURCE[0]}" -o "${BASH_SOURCE[0]}" = "$0" ] || return
|
[ -z "${BASH_SOURCE[0]}" -o "${BASH_SOURCE[0]}" = "$0" ] || return
|
||||||
apt-get update && apt-get install -y --no-install-recommends publicsuffix ca-certificates wget java-common
|
apt-get update && apt-get install -y --no-install-recommends publicsuffix ca-certificates wget java-common
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget --no-check-certificate -O $JDKNAME https://static-public.chatopera.com/vendors/java/java-1.8.0-amazon-corretto-jdk_8.212.04-2_amd64.deb
|
wget --no-check-certificate -O $JDKNAME $JDKURL
|
||||||
dpkg --install $JDKNAME
|
dpkg --install $JDKNAME
|
||||||
rm -rf $JDKNAME
|
rm -rf $JDKNAME
|
||||||
java -version
|
java -version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user