1 # postinst script for Corretto
 2 #
 3 # summary of how this script can be called:
 4 #        * <postinst> `configure' <most-recently-configured-version>
 5 # for details, see https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html or
 6 # the debian-policy package
 7 
 8 
 9 # Note that Nebula gradle-ospackage-plugin default and only support `configure` option for post installation script.
10 
11 for i in @jdk_tools@; do
12     if [ -e @java_home@/bin/$i ]; then
13         cmd="update-alternatives --install /usr/bin/$i $i @java_home@/bin/$i @alternatives_priority@"
14         if [ -e @java_home@/man/man1/$i.1 ]; then
15             cmd="$cmd --slave /usr/share/man/man1/$i.1 $i.1 @java_home@/man/man1/$i.1"
16         fi
17         $cmd
18     fi
19 done