This commit is contained in:
2022-06-18 17:00:02 +03:00
parent 831f75f755
commit b316190ba3

View File

@@ -1,15 +1,17 @@
sudo apt -y update
sudo apt -y install wget nano curl zsh git --allow-unauthenticated
sudo printf "saret\tALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/saret
if [ "$(ls /etc/sudoers.d |grep saret)" != "saret" ]; then
sudo printf "saret\tALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/saret
fi
s=$(grep -i "VERSION=" /etc/os-release)
echo $s
if [ "$s" = 'VERSION="9 (stretch)"' ];
then
echo $s
sudo tee /etc/apt/sources.list <<EOF
deb http://cdn-aws.deb.debian.org/debian stretch main
deb http://security.debian.org/debian-security stretch/updates main
deb http://cdn-aws.deb.debian.org/debian stretch-updates main
deb http://cdn-aws.deb.debian.org/debian stretch main
deb http://security.debian.org/debian-security stretch/updates main
deb http://cdn-aws.deb.debian.org/debian stretch-updates main
EOF
sudo cp -v /etc/apt/sources.list /root/
sudo cp -rv /etc/apt/sources.list.d/ /root/
@@ -54,7 +56,7 @@ else
sudo apt -y full-upgrade --allow-unauthenticated
bash <curl -sSL https://gist.github.com/hannesbe/6c110e9de6644f07a48eecfdbe6b728d/raw
sudo tee /etc/apt/sources.list.d/notaesalexp.list<<EOF
deb https://notesalexp.org/tesseract-ocr5/$(lsb_release -cs)/ $(lsb_release -cs) main
deb https://notesalexp.org/tesseract-ocr5/$(lsb_release -cs)/ $(lsb_release -cs) main
EOF
sudo apt -y update
sudo apt install -y $(apt-cache search tesseract-ocr | awk '{print $1}')