#! /bin/sh #------------------------------------------------------------------------------ # /var/install/config.d/openjdk-11-jdk.sh - uninstall script # # Creation : 2019-08-19 schlotze # Last Update: $Id: openjdk-11-jdk 61759 2018-12-28 13:44:01Z schlotze $ # # Copyright (c) 2019 the eisfair team, team(at)eisfair(dot)org # # 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. #------------------------------------------------------------------------------ # include eislib . /var/install/include/eislib #---------------------------------------------------------------------------- # check if we are updating #---------------------------------------------------------------------------- if [ "$1" = "--update" ] then update="true" else update="false" fi #---------------------------------------------------------------------------- # remove links from alternatives #---------------------------------------------------------------------------- /usr/sbin/update-alternatives --remove jdk /usr/jvm/openjdk-11/bin/javac /usr/sbin/update-alternatives --remove jre /usr/jvm/openjdk-11/bin/java exit 0