summarylogtreecommitdiffstats
path: root/install_jre-jetbrains.sh
diff options
context:
space:
mode:
authorYour Name2021-11-13 13:26:33 +0800
committerYour Name2021-11-13 13:26:33 +0800
commita0b94a83159a21becb92ef6f665cef6aa70a6502 (patch)
tree594d4df21a41bbff28546481cb2418b5fc22e867 /install_jre-jetbrains.sh
parentf93d49fcdd5507b01aa8db6c9cade13845ca985d (diff)
downloadaur-a0b94a83159a21becb92ef6f665cef6aa70a6502.tar.gz
Update b1751.19 & Bundle JCEF
Diffstat (limited to 'install_jre-jetbrains.sh')
-rw-r--r--install_jre-jetbrains.sh17
1 files changed, 15 insertions, 2 deletions
diff --git a/install_jre-jetbrains.sh b/install_jre-jetbrains.sh
index c278bd2eb58..425d0620efd 100644
--- a/install_jre-jetbrains.sh
+++ b/install_jre-jetbrains.sh
@@ -24,12 +24,25 @@ post_install() {
;;
esac
- echo "when you use a non-reparenting window manager,"
- echo "set _JAVA_AWT_WM_NONREPARENTING=1 in /etc/profile.d/jre.sh"
+ if [ ! -f /etc/ssl/certs/java/cacerts ]; then
+ /usr/bin/update-ca-trust
+ fi
}
post_upgrade() {
if [ -z "$(fix_default)" ]; then
/usr/bin/archlinux-java set ${THIS_JRE}
fi
+
+ if [ ! -f /etc/ssl/certs/java/cacerts ]; then
+ /usr/bin/update-ca-trust
+ fi
+}
+
+pre_remove() {
+ default=$(fix_default)
+ if [ "x${default}" = "x${THIS_JRE}" ]; then
+ /usr/bin/archlinux-java unset
+ echo "No Java environment is set as default anymore"
+ fi
}