Update README.md
inserted bash script for adding multiple users
This commit is contained in:
parent
0e961a2e6b
commit
8165500847
1 changed files with 18 additions and 0 deletions
18
README.md
18
README.md
|
|
@ -89,6 +89,24 @@ export PASS="1"
|
||||||
./openvpn-install.sh
|
./openvpn-install.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The following Bash script adds multiple users
|
||||||
|
|
||||||
|
```bash
|
||||||
|
#!/bin/bash
|
||||||
|
userlist=(user1 user2 user3 user4 user5 user6 user7 user8 user9 user10)
|
||||||
|
for i in ${userlist[@]}
|
||||||
|
|
||||||
|
do
|
||||||
|
export MENU_OPTION="1"
|
||||||
|
export CLIENT=$i
|
||||||
|
export PASS="1"
|
||||||
|
|
||||||
|
./openvpn-install.sh
|
||||||
|
ls -a | grep $i
|
||||||
|
sleep 5
|
||||||
|
done
|
||||||
|
```
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Installs and configures a ready-to-use OpenVPN server
|
- Installs and configures a ready-to-use OpenVPN server
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue