source: oracle-java8-installer/trunk/fuentes/debian/oracle-java8-unlimited-jce-policy.config @ 2122

Last change on this file since 2122 was 566, checked in by jrpelegrina, 4 years ago

First release to xenial

File size: 1.5 KB
Line 
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6
7
8### Variables
9VER='0.7'
10
11# Folders
12J_INSTALL_DIR=/usr/lib/jvm/java-8-oracle/jre/lib/security
13OLDDIR=/usr/lib/oracle-jdk8-installer-unpackdir
14NEWDIR=/var/cache/oracle-jdk8-installer
15
16SHA256SUM_TGZ="f3020a3922efd6626c2fff45695d527f34a8020e938a49292561f18ad1320b59"
17J_DIR=UnlimitedJCEPolicyJDK8
18FILENAME=jce_policy-8.zip
19PARTNER_URL=http://download.oracle.com/otn-pub/java/jce/8/$FILENAME
20
21db_get oracle-java8-unlimited-jce-policy/local
22echo "$SHA256SUM_TGZ  $RET/$FILENAME" \
23| sha256sum -c > /dev/null 2>&1 \
24|| db_set oracle-java8-unlimited-jce-policy/local /var/cache/oracle-jdk8-installer
25
26db_get oracle-java8-unlimited-jce-policy/local
27echo "$SHA256SUM_TGZ  $RET/$FILENAME" \
28| sha256sum -c > /dev/null 2>&1 \
29|| db_set oracle-java8-unlimited-jce-policy/local /usr/lib/oracle-jdk8-installer-unpackdir
30
31db_get oracle-java8-unlimited-jce-policy/local
32echo "$SHA256SUM_TGZ  $RET/$FILENAME" \
33| sha256sum -c > /dev/null 2>&1 \
34|| db_reset oracle-java8-unlimited-jce-policy/local
35
36while true; do
37    db_input medium oracle-java8-unlimited-jce-policy/local || true
38    db_go
39    db_get oracle-java8-unlimited-jce-policy/local
40    if [ -d "$RET" -a -f "$RET"/$FILENAME ]; then
41                LOCAL="true"
42                break;
43    elif [ "x$RET" = "x" ]; then
44                break;
45    fi
46    db_reset oracle-java8-unlimited-jce-policy/not_exist || true
47    db_reset oracle-java8-unlimited-jce-policy/local || true
48    db_text medium oracle-java8-unlimited-jce-policy/not_exist || true
49    db_go
50done
51
52exit 0
Note: See TracBrowser for help on using the repository browser.