adding capability to update java

This commit is contained in:
Mylloon 2021-11-11 22:48:11 +01:00
parent a8d7412f81
commit 6afa166679

View file

@ -10,6 +10,9 @@ tar xvzf java.tar.gz
rm java.tar.gz
mv jdk* jdk-16
# On le place dans le dossier /usr/share
if [ -x /usr/share/jdk-16 ] ; then
sudo rm -rf /usr/share/jdk-16
fi
sudo mv jdk-16 /usr/share
# On l'ajoute à la path pour Bash et Fish
echo "export PATH=/usr/share/jdk-16/bin:\$PATH" >> $HOME/.bashrc