-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcentos7.sh
28 lines (21 loc) · 1.1 KB
/
centos7.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
clear
echo " __ __ _ _____ "
echo " \ \ / / | | | _ | "
echo " \ V /__ _| | ___ _ ______ _| | | |_ __ ___ _ ____ ___ __ _ __ "
echo " \ // _ | |/ / | | |_ / _ | | | | '_ \ / _ \ '_ \ \ / / '_ \| '_ \ "
echo " | | (_| | <| |_| |/ / (_| \ \_/ / |_) | __/ | | \ V /| |_) | | | |"
echo " \_/\__,_|_|\_\\__,_/___\__,_|\___/| .__/ \___|_| |_|\_/ | .__/|_| |_|"
echo " | | | | "
echo " |_| |_| "
yum update -y
yum install net-tools -y
rpm -i openvpn-as-2.5-CentOS7.x86_64.rpm
rm /usr/local/openvpn_as/lib/python2.7/site-packages/pyovpn-2.0-py2.7.egg
cp pyovpn-2.0-py2.7.egg /usr/local/openvpn_as/lib/python2.7/site-packages/
cd /usr/local/openvpn_as/bin || exit
./ovpn-init
echo "=========================DONE=============================="
echo "SETUP ADMIN PASSWORD"
passwd openvpn
echo "=========================DONE=============================="