#!/bin/sh #---------------------------------------------------------------------------- # /var/install/deinstall/java-12-openjdk-headless - deinstall script # # Creation : 2025-02-11 holbru # Last update: $Id$ # # Copyright (c) 2025-@@YEAR@@ Holger Bruenjes, holgerbruenjes(at)gmx(dot)net # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- # set package name package_name=java-12-openjdk-headless # check for update is given if [ "${1}" = "--update" ] then update=true fi if test -f /proc/sys/fs/binfmt_misc/jarexec then echo '-1' > /proc/sys/fs/binfmt_misc/jarexec fi ver=12 /usr/sbin/update-alternatives --remove java /usr/lib64/jvm/jre-${ver}-openjdk/bin/java /usr/sbin/update-alternatives --remove jre_openjdk /usr/lib64/jvm/jre-${ver}-openjdk /usr/sbin/update-alternatives --remove jre_${ver} /usr/lib64/jvm/jre-${ver}-openjdk exit 0 # --------------------------------------------------------------------------- # end # ---------------------------------------------------------------------------