-
-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download and install Zulu Embedded Java from .tar #459
Changes from all commits
3f686e3
bcd113b
3bdd4a8
69c10c5
89387d2
2ed71d7
2be05b0
bfd5c48
44a52d2
894f5ae
bb8630a
6a70dad
4497fb0
3161edb
d23d03f
e01271a
497900a
8407baf
2808b3a
41a96b6
d08cc81
f37ee50
f2c252e
a462387
f310972
c9547db
e88d70d
6a9252b
6e99e32
9fa79ef
d537588
d05cb9d
d481c79
97a6783
035c63d
b51ea30
27b61ea
cb38361
b226362
6c7cdd5
7fe34b3
fe31212
4a8e498
13004f9
5fe126a
279c428
a825d93
cf7eb85
bc7fb67
4b47c08
00d9d6f
3de6632
4b80944
e6e77dd
fe398b6
7d82d60
dad4fa8
b25ea87
59a74a1
5c34072
e1a5d97
627ebb0
fbb5e80
91afd93
24e6ae9
de676a8
0c3a641
7bd3ad3
c99252c
6d75927
6eb4873
02ccdc3
7652283
4c81213
fe277a1
8945f60
43c424a
97145a8
762d103
fb8f182
c31e5d8
c76ca87
338b5d5
802b668
654beee
5a1f15c
a70824a
e1c057f
b7d0223
a7bf0ca
2f55f2c
1751d11
262e6c2
8623a9e
8c100e0
922c0a4
c3249d5
fb9d601
c6bc115
d6c6d18
8ae1647
5df13f1
4ca4c43
494345e
e8deb02
506256a
4388e0e
4e09e74
28cbae4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
java_webupd8() { | ||
java_webupd8_archive() { | ||
echo -n "$(timestamp) [openHABian] Preparing and Installing Oracle Java 8 Web Upd8 repository... " | ||
cond_redirect apt -y install dirmngr | ||
cond_redirect apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 | ||
|
@@ -17,23 +17,28 @@ java_webupd8() { | |
if [ $? -eq 0 ]; then echo "OK"; else echo "FAILED"; exit 1; fi | ||
} | ||
|
||
java_zulu_embedded() { | ||
echo -n "$(timestamp) [openHABian] Installing Zulu Embedded OpenJDK... " | ||
cond_redirect apt -y install dirmngr | ||
if is_arm; then arch="[arch=armhf]"; fi | ||
cond_redirect apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 219BD9C9 | ||
if [ $? -ne 0 ]; then echo "FAILED (keyserver)"; exit 1; fi | ||
if is_ubuntu; then | ||
echo "deb $arch http://repos.azulsystems.com/ubuntu stable main" > /etc/apt/sources.list.d/zulu-embedded.list | ||
else | ||
echo "deb $arch http://repos.azulsystems.com/debian stable main" > /etc/apt/sources.list.d/zulu-embedded.list | ||
fi | ||
if is_pine64; then cond_redirect dpkg --add-architecture armhf; fi | ||
cond_redirect apt update | ||
java_zulu() { | ||
local FILE="/var/tmp/.zulu.$$" | ||
local INSTALLROOT=/opt/jdk | ||
local TEMPROOT=/opt/jdk-new | ||
mkdir ${INSTALLROOT} | ||
mkdir ${TEMPROOT} | ||
|
||
if is_arm; then | ||
cond_redirect apt -y install zulu-embedded-8 | ||
# Latest version check https://www.azul.com/downloads/zulu-embedded | ||
local JAVA=zulu8.33.0.134-jdk1.8.0_192-linux_aarch32hf | ||
else | ||
cond_redirect apt -y install zulu-8 | ||
# Latest version check https://www.azul.com/downloads/zulu-linux | ||
local JAVA=zulu8.33.0.1-jdk8.0.192-linux_x64 | ||
fi | ||
if [ $? -eq 0 ]; then echo "OK"; else echo "FAILED"; exit 1; fi | ||
} | ||
whiptail --textbox $BASEDIR/includes/azul-zulu-license.md --scrolltext 27 116 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "docs"? Please test your code before committing changes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes it was working, pointing to docs which is where I had put the license. Do you want me remove Oracle as part of this PR, too ? |
||
|
||
cond_redirect wget -nv -O $FILE http://cdn.azul.com/zulu-embedded/bin/${JAVA}.tar.gz | ||
cond_redirect tar -xpzf $FILE -C ${TEMPROOT} | ||
if [ $? -ne 0 ]; then echo "FAILED (Zulu java)"; rm -f ${FILE}; exit 1; fi | ||
rm -rf $FILE ${INSTALLROOT}/* | ||
mv ${TEMPROOT}/* ${INSTALLROOT}/; rmdir ${TEMPROOT} | ||
cond_redirect update-alternatives --install /usr/bin/java java ${INSTALLROOT}/${JAVA}/bin/java 1083000 | ||
cond_redirect update-alternatives --install /usr/bin/javac java ${INSTALLROOT}/${JAVA}/bin/javac 1083000 | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
|
||
Zulu is copyrighted software based on OpenJDK (http://openjdk.java.net/) and is 100% open source. | ||
By downloading, installing, or otherwise using Zulu, you hereby agree as follows: | ||
|
||
Zulu is provided “AS IS” and without warranty of any kind, express or implied, including without limitation any | ||
warranty of merchantability, fitness for a particular purpose, or noninfringement, each of which are hereby | ||
expressly disclaimed. You acknowledge and agree that any use of Zulu is at your sole risk. Azul will not be liable | ||
to you (whether under contract, tort, strict liability, negligence, or any other legal or equitable theory) for | ||
(i) any indirect, incidental, consequential, special, punitive, or reliance damages relating to your download, use | ||
or installation of Zulu (including without limitation any loss of or damage to data or systems), or | ||
(ii) for any direct damages in excess of (in the aggregate) one hundred U.S. dollars ($100). | ||
Some states do not allow the exclusion or limitation of incidental or consequential damages, so the above | ||
limitations may not apply to you. Azul is not obligated to provide you with any support for Zulu (unless you have | ||
entered into a separate written agreement for such support, in which case such separate agreement shall apply). | ||
You also represent and warrant that you do not intend to distribute the software in a manner that is not compliant | ||
with relevant export control laws or regulations administered by the U.S. Commerce Department, OFAC, or any other | ||
government agency. | ||
|
||
https://www.azul.com/products/zulu-and-zulu-enterprise/zulu-terms-of-use/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a comment with the following URL above: https://www.azul.com/downloads/zulu-embedded
I'm not at all a fan of adding the version number as a fixed string. Could you please reach out their forum to find out if there is a static redircting link. You can also use the chance to ask about their Terms of Use.
This request should not block the merge of this PR.