From 8a0c0d9e1f464528c5e1604f17de5e6516c94be9 Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Fri, 5 Nov 2021 21:53:04 +0800 Subject: [PATCH] u --- expect-ssh.sh | 6 +++--- install-node.sh => install-nodejs.sh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename install-node.sh => install-nodejs.sh (89%) diff --git a/expect-ssh.sh b/expect-ssh.sh index 1ce5cf9..40384aa 100755 --- a/expect-ssh.sh +++ b/expect-ssh.sh @@ -5,7 +5,7 @@ set timeout 30 spawn ssh [lindex $argv 1]@[lindex $argv 0] -p 22 expect { - "(yes/no)?" + "yes/no" {send "yes\n";exp_continue} "password:" {send "[lindex $argv 2]\n";exp_continue} @@ -13,7 +13,7 @@ expect { {send "su\n";exp_continue} "Password:" {send "[lindex $argv 3]\ncd /faronear\n"} -# "密码:" -# {send "[lindex $argv 3]\ncd /faronear\n"} + "密码:" + {send "[lindex $argv 3]\ncd /faronear\n"} } interact diff --git a/install-node.sh b/install-nodejs.sh similarity index 89% rename from install-node.sh rename to install-nodejs.sh index a920e7f..ff922d6 100755 --- a/install-node.sh +++ b/install-nodejs.sh @@ -22,10 +22,10 @@ then else sudo apt update echo "######## Installing C++ build tools for Linux ########" - sudo apt install curl gcc g++ make -y + sudo apt install curl gcc g++ make python -y # Debian 11 has no python by default. echo "######## Installing nodejs v$nodeVersion ########" echo From https://deb.nodesource.com/setup_$nodeVersion.x curl -sL https://deb.nodesource.com/setup_$nodeVersion.x | sudo bash - && sudo apt install nodejs -y - echo "######## nodejs v$nodeVersion installed completely! ##################" + echo "######## nodejs v$nodeVersion installed completely! ########" fi