#!/usr/bin/sh #---------------------------------------------------------------------------- # /var/install/deinstall/java-21-openjdk-dev - deinstall script # # Creation : 2025-02-12 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-21-openjdk-dev # check for update is given if [ "${1}" = "--update" ] then update=true fi ver=21 /usr/sbin/update-alternatives --remove javac /usr/lib64/jvm/java-${ver}-openjdk/bin/javac /usr/sbin/update-alternatives --remove java_sdk_openjdk /usr/lib64/jvm/java-${ver}-openjdk /usr/sbin/update-alternatives --remove java_sdk_${ver} /usr/lib64/jvm/java-${ver}-openjdk # --------------------------------------------------------------------------- # stop for update only # --------------------------------------------------------------------------- if ${update:-false} then exit 0 fi . /var/install/include/eislib # do not remove the spaces ;-), # it is recomended for 'white' background # 1 2 3 4 5 6 7 8 # 12345678901234567890123456789012345678901234567890123456789012345678901234567890 echo mecho --warn " " mecho --warn " Hint: " mecho --warn " Please logout/login to set the java environment correct! " mecho --warn " " sleep 5 exit 0 # --------------------------------------------------------------------------- # end # ---------------------------------------------------------------------------