Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

choose VPS type: wrong choice! #2

Closed
Momosusu opened this issue Jul 14, 2015 · 6 comments
Closed

choose VPS type: wrong choice! #2

Momosusu opened this issue Jul 14, 2015 · 6 comments

Comments

@Momosusu
Copy link

please choose the type of your VPS(Xen、KVM: 1 , OpenVZ: 2):
wrong choice!

Exit code: 1


echo "please choose the type of your VPS(Xen、KVM: 1 , OpenVZ: 2):"
read -p "your choice(1 or 2):" os_choice
if [ "$os_choice" = "1" ]; then
os="1"
os_str="Xen、KVM"
else
if [ "$os_choice" = "2" ]; then
os="2"
os_str="OpenVZ"
else
echo "wrong choice!"
exit 1
fi
fi


脚本的if 和else 好像没有对齐,是这个问题么?我有点小白,或者这样同样可以键入?

@quericy
Copy link
Owner

quericy commented Jul 15, 2015

和对齐无关...这里是用read指令读取你输入的数字来匹配选项

@Momosusu
Copy link
Author

出现wrong choice是因为没有执行 read 指令么?

@quericy
Copy link
Owner

quericy commented Jul 15, 2015

你选择数字了吗....

@Momosusu
Copy link
Author

已经搞定了,开始用的 SHELL BASIC, 有些命令执行不了,换了Interactive Shell就安装成功了。我怎么才能知道strongswan是否在运行呢?用top 命令可以查看到么?

@quericy
Copy link
Owner

quericy commented Jul 15, 2015

Ipsec status

@Momosusu
Copy link
Author

一键安装是成功了,但是我的黑莓还是上不了,总是time out,哭死。。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants