adding capability to update java
This commit is contained in:
parent
a8d7412f81
commit
6afa166679
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Reference in a new issue