mirror of
https://github.com/teddysun/across.git
synced 2025-01-19 06:19:35 +08:00
Add warning information when install based on OpenVZ
This commit is contained in:
parent
bf436ed3bd
commit
a88801cbf0
13
l2tp.sh
13
l2tp.sh
@ -199,6 +199,19 @@ version_check(){
|
|||||||
|
|
||||||
preinstall_l2tp(){
|
preinstall_l2tp(){
|
||||||
|
|
||||||
|
echo
|
||||||
|
if [ -d "/proc/vz" ]; then
|
||||||
|
echo -e "\033[41;37m WARNING: \033[0m Your VPS is based OpenVZ, Maybe the kernel does not support IPSec."
|
||||||
|
echo "Continue to install it? (y/n)"
|
||||||
|
read -p "(Default: n)" agree
|
||||||
|
[ -z ${agree} ] && agree="n"
|
||||||
|
if [ "${agree}" == "n" ]; then
|
||||||
|
echo
|
||||||
|
echo "L2TP install cancelled, nothing to do..."
|
||||||
|
echo
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
echo
|
echo
|
||||||
echo "Please input IP-Range:"
|
echo "Please input IP-Range:"
|
||||||
read -p "(Default Range: 192.168.18):" iprange
|
read -p "(Default Range: 192.168.18):" iprange
|
||||||
|
Loading…
x
Reference in New Issue
Block a user