u
This commit is contained in:
parent
fed07bf3f8
commit
8a0c0d9e1f
@ -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
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user