summaryrefslogtreecommitdiff
path: root/libre/java-common/install_java-runtime-common.sh
blob: 9aebc7502794b341dcc77da21697cb1a85f37372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pre_upgrade() {
  if grep -q '^export _JAVA_AWT_WM_NONREPARENTING=1' /etc/profile.d/jre.sh > /dev/null 2>&1; then
    echo "Variable '_JAVA_AWT_WM_NONREPARENTING' should not be set in /etc/profile.d/jre.sh any more"
    echo "Please declare it in ~/.xinitrc or such"
  fi
}

post_install() {
  echo 'For the complete set of Java binaries to be available in your PATH,'
  echo 'you need to re-login or source /etc/profile.d/jre.sh'
  echo 'Please note that this package does not support forcing JAVA_HOME as former package 'java-common' did'
}

post_upgrade() {
  parabola-java fix
}