diff --git a/serve-yapi.sh b/serve-yapi.sh index 33d6dc1..349db5e 100755 --- a/serve-yapi.sh +++ b/serve-yapi.sh @@ -1,8 +1,8 @@ echo 'Starting yapi...' -sudo pm2 start "/root/yapi/vendors/server/app.js" --name yapi # sudo it so that pm2 list shows it as root +sudo pm2 start "/faronear/fon/yapi/vendors/server/app.js" --name yapi # sudo it so that pm2 list shows it as root echo 'Starting http2https web service...' -cd /root/yapi.faronear.org +cd /faronear/fon/yapi.faronear.org sudo pm2 start server.js --name yapi.https2http # sudo it so that pm2 list shows it as root cd .. diff --git a/ssh-expect.sh b/ssh-expect.sh index 0c1f616..0fbf27e 100755 --- a/ssh-expect.sh +++ b/ssh-expect.sh @@ -13,6 +13,6 @@ expect { "Password:" {send "[lindex $argv 3]\n"} "密码:" - {send "[lindex $argv 3]\n"} + {send "[lindex $argv 3]\ncd /faronear\nll"} } interact