more than my life
This commit is contained in:
@@ -76,6 +76,8 @@ After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=3600
|
||||
ExecStart=sh /Scripts/ssh.sh
|
||||
User=saret
|
||||
|
||||
@@ -85,7 +87,9 @@ 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
|
||||
ssh saret@ssh-j.com -N -R libre-computer:22:localhost:22
|
||||
fi
|
||||
EOF
|
||||
sudo chmod a+x /Scripts/ssh.sh
|
||||
sudo tee /etc/systemd/system/GoogleDrive.service <<EOF
|
||||
@@ -123,6 +127,8 @@ After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=3600
|
||||
ExecStart=sh /Scripts/ssh.sh
|
||||
User=saret
|
||||
|
||||
@@ -132,7 +138,9 @@ 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
|
||||
ssh saret@ssh-j.com -N -R libre-computer:22:localhost:22
|
||||
fi
|
||||
EOF
|
||||
cat <<EOF >> .zshrc
|
||||
#My alias
|
||||
|
Reference in New Issue
Block a user