trying to fix the vars on eofs

This commit is contained in:
2022-08-14 06:14:53 +03:00
parent d07b1e0156
commit 05fff6c6b1

View File

@@ -50,7 +50,7 @@ sed -i "s/plugins=(/plugins=\(zsh-autosuggestions z /" ~/.zshrc
sed -i "s/oh-my-zsh.sh/oh-my-zsh\nsource ~\/.oh-my-zsh\/custom\/plugins\/zsh-autosuggestions\/zsh-autosuggestions.zsh/" ~/.zshrc
fi
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}')
@@ -79,7 +79,7 @@ After=network.target
Type=simple
Restart=always
RestartSec=3600
ExecStart=sh /Scripts/ssh.sh
ExecStart=/Scripts/ssh.sh
User=saret
[Install]
@@ -88,7 +88,7 @@ EOF
sudo chmod a+x /etc/systemd/system/RunSSH.service
sudo mkdir /Scripts
sudo tee /Scripts/ssh.sh <<EOF
if [[ "$(ps -x |grep saret@ssh |awk '{print $9}')" != *"libre-computer:22:localhost:22"* ]]; then
if [[ "\$(ps -x |grep saret@ssh |awk '{print \$9}')" != *"libre-computer:22:localhost:22"* ]]; then
ssh saret@ssh-j.com -N -R libre-computer:22:localhost:22
fi
EOF
@@ -116,8 +116,8 @@ alias go="sudo apt -y"
alias no="sudo -s"
alias dl="youtube-dl -f '(mp4,mkv)bestvideo[height>=720]+bestaudio/bestvideo[height>=720]' -o '%(title)s'"
alias DL="youtube-dl -f '(mp4,mkv)bestvideo[height>720]+bestaudio/bestvideo[height>720]' -o '%(title)s'"
export DOTNET_ROOT=$HOME/.dotnet
export PATH=$PATH:$HOME/.dotnet
export DOTNET_ROOT=\$HOME/.dotnet
export PATH=\$PATH:\$HOME/.dotnet
EOF
elif [ "$HOST" = "tritium-h5" ];
su -c 'wget -O - "https://connect.jfrog.io/install_connect" | sh -s VBr9r2byCYKNaE3rgZwYZANg8BueGk3HAQ Server'
@@ -130,7 +130,7 @@ After=network.target
Type=simple
Restart=always
RestartSec=3600
ExecStart=sh /Scripts/ssh.sh
ExecStart=/Scripts/ssh.sh
User=saret
[Install]
@@ -139,7 +139,7 @@ EOF
sudo chmod a+x /etc/systemd/system/RunSSH.service
sudo mkdir /Scripts
sudo tee /Scripts/ssh.sh <<EOF
if [[ "$(ps -x |grep saret@ssh |awk '{print $9}')" != *"libre-computer:22:localhost:22"* ]]; then
if [[ "\$(ps -x |grep saret@ssh |awk '{print \$9}')" != *"libre-computer:22:localhost:22"* ]]; then
ssh saret@ssh-j.com -N -R libre-computer:22:localhost:22
fi
EOF
@@ -150,8 +150,8 @@ alias go="sudo apt -y"
alias no="sudo -s"
alias dl="youtube-dl -f '(mp4,mkv)bestvideo[height>=720]+bestaudio/bestvideo[height>=720]' -o '%(title)s'"
alias DL="youtube-dl -f '(mp4,mkv)bestvideo[height>720]+bestaudio/bestvideo[height>720]' -o '%(title)s'"
export DOTNET_ROOT=$HOME/.dotnet
export PATH=$PATH:$HOME/.dotnet
export DOTNET_ROOT=\$HOME/.dotnet
export PATH=\$PATH:\$HOME/.dotnet
EOF
sudo chmod a+x /Scripts/ssh.sh
sudo tee /etc/systemd/system/GoogleDrive.service <<EOF
@@ -179,8 +179,8 @@ alias no="sudo -s"
alias dl="youtube-dl -f '(mp4,mkv)bestvideo[height>=720]+bestaudio/bestvideo[height>=720]' -o '%(title)s'"
alias DL="youtube-dl -f '(mp4,mkv)bestvideo[height>720]+bestaudio/bestvideo[height>720]' -o '%(title)s'"
alias s!="ssh Libre -X"
export DOTNET_ROOT=$HOME/.dotnet
export PATH=$PATH:$HOME/.dotnet
export DOTNET_ROOT=\$HOME/.dotnet
export PATH=\$PATH:\$HOME/.dotnet
EOF
sudo sed -i '$a\'"\n\x64\x65\x62\x20\x68\x74\x74\x70\x73\x3a\x2f\x2f\x6e\x6f\x74\x65\x73\x61\x6c\x65\x78\x70\x2e\x6f\x72\x67\x2f\x64\x65\x62\x69\x61\x6e\x2f\x62\x75\x6c\x6c\x73\x65\x79\x65\x2f\x20\x62\x75\x6c\x6c\x73\x65\x79\x65\x20\x6d\x61\x69\x6e\x20\x63\x6f\x6e\x74\x72\x69\x62\x20\x6e\x6f\x6e\x2d\x66\x72\x65\x65\\n\x64\x65\x62\x2d\x73\x72\x63\x20\x68\x74\x74\x70\x73\x3a\x2f\x2f\x6e\x6f\x74\x65\x73\x61\x6c\x65\x78\x70\x2e\x6f\x72\x67\x2f\x64\x65\x62\x69\x61\x6e\x2f\x62\x75\x6c\x6c\x73\x65\x79\x65\x2f\x20\x62\x75\x6c\x6c\x73\x65\x79\x65\x20\x6d\x61\x69\x6e\x20\x63\x6f\x6e\x74\x72\x69\x62\x20\x6e\x6f\x6e\x2d\x66\x72\x65\x65" /etc/apt/sources.list
fi