diff options
author | Your Name | 2021-11-13 13:26:33 +0800 |
---|---|---|
committer | Your Name | 2021-11-13 13:26:33 +0800 |
commit | a0b94a83159a21becb92ef6f665cef6aa70a6502 (patch) | |
tree | 594d4df21a41bbff28546481cb2418b5fc22e867 /install_jre-jetbrains.sh | |
parent | f93d49fcdd5507b01aa8db6c9cade13845ca985d (diff) | |
download | aur-a0b94a83159a21becb92ef6f665cef6aa70a6502.tar.gz |
Update b1751.19 & Bundle JCEF
Diffstat (limited to 'install_jre-jetbrains.sh')
-rw-r--r-- | install_jre-jetbrains.sh | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/install_jre-jetbrains.sh b/install_jre-jetbrains.sh index c278bd2eb586..425d0620efdc 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 } |