tee no passwd

This commit is contained in:
2022-06-18 19:34:43 +03:00
parent c1871d69db
commit fa58460d66

View File

@@ -8,7 +8,9 @@ fi
sudo apt -y update
sudo apt -y install wget nano curl zsh git lsb-release apt-transport-https --allow-unauthenticated
if [ "$(ls /etc/sudoers.d |grep saret)" != "saret" ]; then
sudo printf "saret\tALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/saret
sudo tee /etc/sudoers.d/saret <<EOF
saret ALL=(ALL) NOPASSWD:ALL
EOF
fi
s=$(grep -i "VERSION=" /etc/os-release)
echo $s