Skip to content

Commit 3a77f4c

Browse files
committed
update pptpd version
Signed-off-by: Teddysun <[email protected]>
1 parent 2f9e5ad commit 3a77f4c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

pptp.sh

+9-9
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ arch=`uname -m`
3838
IP=`ip addr | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | egrep -v "^192\.168|^172\.1[6-9]\.|^172\.2[0-9]\.|^172\.3[0-2]\.|^10\.|^127\.|^255\." | head -n 1`
3939

4040
# Download pptpd
41-
if [ -s pptpd-1.3.4-2.el6.$arch.rpm ]; then
42-
echo "pptpd-1.3.4-2.el6.$arch.rpm [found]"
41+
if [ -s pptpd-1.4.0-3.el6.$arch.rpm ]; then
42+
echo "pptpd-1.4.0-3.el6.$arch.rpm [found]"
4343
else
44-
echo "pptpd-1.3.4-2.el6.$arch.rpm not found!!!download now......"
45-
if ! wget http://lamp.teddysun.com/files/pptpd-1.3.4-2.el6.$arch.rpm;then
46-
echo "Failed to download pptpd-1.3.4-2.el6.$arch.rpm,please download it to $cur_dir directory manually and retry."
44+
echo "pptpd-1.4.0-3.el6.$arch.rpm not found! download now......"
45+
if ! wget http://lamp.teddysun.com/files/pptpd-1.4.0-3.el6.$arch.rpm; then
46+
echo "Failed to download pptpd-1.4.0-3.el6.$arch.rpm, please download it to $cur_dir directory manually and retry."
4747
exit 1
4848
fi
4949
fi
5050

5151
# Install some necessary tools
5252
yum -y install net-tools make libpcap iptables gcc-c++ logrotate tar cpio perl pam tcp_wrappers dkms ppp
53-
rpm -ivh pptpd-1.3.4-2.el6.$arch.rpm
53+
rpm -ivh pptpd-1.4.0-3.el6.$arch.rpm
5454

5555
rm -f /dev/ppp
5656
mknod /dev/ppp c 108 0
@@ -77,12 +77,12 @@ chkconfig pptpd on
7777
service iptables restart
7878
service pptpd start
7979

80-
echo ""
80+
echo
8181
echo "PPTP VPN service is installed."
8282
echo "ServerIP:${IP}"
8383
echo "Username:vpn"
8484
echo "Password:${pass}"
85-
echo "Welcome to visit: http://teddysun.com/134.html"
86-
echo ""
85+
echo "Welcome to visit: https://teddysun.com/134.html"
86+
echo
8787

8888
exit 0

0 commit comments

Comments
 (0)