summaryrefslogtreecommitdiff
path: root/libre/java7-openjdk/jre7-openjdk-headless.install
diff options
context:
space:
mode:
Diffstat (limited to 'libre/java7-openjdk/jre7-openjdk-headless.install')
-rw-r--r--libre/java7-openjdk/jre7-openjdk-headless.install4
1 files changed, 2 insertions, 2 deletions
diff --git a/libre/java7-openjdk/jre7-openjdk-headless.install b/libre/java7-openjdk/jre7-openjdk-headless.install
index 48b79e8b0..dae6648f0 100644
--- a/libre/java7-openjdk/jre7-openjdk-headless.install
+++ b/libre/java7-openjdk/jre7-openjdk-headless.install
@@ -15,7 +15,7 @@ post_install() {
if [ ! -f /etc/ssl/certs/java/cacerts ]; then
# Overwrite JAVA_HOME because if it still points at java-7-openjdk AND user just removed jdk,
# Then /usr/bin/java will in the end, refer to /usr/lib/jvm/java-7-openjdk/java which doesn't exist
- JAVA_HOME=/usr/lib/jvm/java-default-runtime /usr/bin/init-jks-keystore
+ JAVA_HOME=/usr/lib/jvm/${this_java} /usr/bin/init-jks-keystore
fi
}
@@ -28,7 +28,7 @@ post_upgrade() {
fi
if [ ! -f /etc/ssl/certs/java/cacerts ]; then
- JAVA_HOME=/usr/lib/jvm/java-default-runtime /usr/bin/init-jks-keystore
+ JAVA_HOME=/usr/lib/jvm/${this_java} /usr/bin/init-jks-keystore
fi
}