Changement de l'ordre ce certaines instructions

This commit is contained in:
Mylloon 2022-04-09 16:52:42 +02:00
parent 27c1561611
commit 56f3b22a62
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

4
wsl.sh
View file

@ -7,7 +7,6 @@ then
sudo sed -i "s/focal/impish/g" /etc/apt/sources.list.d/*.list sudo sed -i "s/focal/impish/g" /etc/apt/sources.list.d/*.list
sudo apt update sudo apt update
sudo apt upgrade -y sudo apt upgrade -y
sudo apt purge needrestart # remove kernel update message (https://github.com/microsoft/WSL/issues/7054#issuecomment-864271333)
which git &> /dev/null || sudo apt install git -y # install git if not already installed which git &> /dev/null || sudo apt install git -y # install git if not already installed
which curl &> /dev/null || sudo apt install apt-transport-https curl -y # install curl (along with apt-transport-https) if not already installed which curl &> /dev/null || sudo apt install apt-transport-https curl -y # install curl (along with apt-transport-https) if not already installed
@ -164,7 +163,8 @@ then
# === Remove SU password == # === Remove SU password ==
sudo sed -i "26s#.*#%sudo ALL=(ALL:ALL) NOPASSWD: ALL#" /etc/sudoers sudo sed -i "26s#.*#%sudo ALL=(ALL:ALL) NOPASSWD: ALL#" /etc/sudoers
# === Clear useless packages # === Remove useless packages
sudo apt purge needrestart -y # remove kernel update message (https://github.com/microsoft/WSL/issues/7054#issuecomment-864271333)
sudo apt autoremove -y sudo apt autoremove -y