Fix cookie for java download

Change-Id: Ieffcce0a0037c4c0fd156e401bf3d370e2fd74f3
Closes-bug: #1293402
This commit is contained in:
iberezovskiy 2014-03-17 13:03:02 +04:00
parent 6ceb2a8cbc
commit 1b1597d3bf

View File

@ -11,7 +11,7 @@ if [ -n "$JAVA_DOWNLOAD_URL" ]; then
install-packages wget
JAVA_FILE=$(basename $JAVA_DOWNLOAD_URL)
wget --no-check-certificate --no-cookies \
--header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" \
--header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \
-O $JAVA_HOME/$JAVA_FILE $JAVA_DOWNLOAD_URL
if [ $? -eq 0 ]; then
echo "Java download successful"