Changement de l'ordre ce certaines instructions
This commit is contained in:
parent
27c1561611
commit
56f3b22a62
1 changed files with 2 additions and 2 deletions
4
wsl.sh
4
wsl.sh
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue