done?
This commit is contained in:
@@ -1,15 +1,17 @@
|
|||||||
sudo apt -y update
|
sudo apt -y update
|
||||||
sudo apt -y install wget nano curl zsh git --allow-unauthenticated
|
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)
|
s=$(grep -i "VERSION=" /etc/os-release)
|
||||||
echo $s
|
echo $s
|
||||||
if [ "$s" = 'VERSION="9 (stretch)"' ];
|
if [ "$s" = 'VERSION="9 (stretch)"' ];
|
||||||
then
|
then
|
||||||
echo $s
|
echo $s
|
||||||
sudo tee /etc/apt/sources.list <<EOF
|
sudo tee /etc/apt/sources.list <<EOF
|
||||||
deb http://cdn-aws.deb.debian.org/debian stretch main
|
deb http://cdn-aws.deb.debian.org/debian stretch main
|
||||||
deb http://security.debian.org/debian-security stretch/updates 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-updates main
|
||||||
EOF
|
EOF
|
||||||
sudo cp -v /etc/apt/sources.list /root/
|
sudo cp -v /etc/apt/sources.list /root/
|
||||||
sudo cp -rv /etc/apt/sources.list.d/ /root/
|
sudo cp -rv /etc/apt/sources.list.d/ /root/
|
||||||
@@ -54,7 +56,7 @@ else
|
|||||||
sudo apt -y full-upgrade --allow-unauthenticated
|
sudo apt -y full-upgrade --allow-unauthenticated
|
||||||
bash <curl -sSL https://gist.github.com/hannesbe/6c110e9de6644f07a48eecfdbe6b728d/raw
|
bash <curl -sSL https://gist.github.com/hannesbe/6c110e9de6644f07a48eecfdbe6b728d/raw
|
||||||
sudo tee /etc/apt/sources.list.d/notaesalexp.list<<EOF
|
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
|
EOF
|
||||||
sudo apt -y update
|
sudo apt -y update
|
||||||
sudo apt install -y $(apt-cache search tesseract-ocr | awk '{print $1}')
|
sudo apt install -y $(apt-cache search tesseract-ocr | awk '{print $1}')
|
||||||
|
Reference in New Issue
Block a user