- Update scripts to use bash instead of sh
- Update docs
This commit is contained in:
hwdsl2
2021-08-27 23:35:31 -05:00
parent dcb3a7ab83
commit da7697a5b0
11 changed files with 19 additions and 19 deletions

View File

@@ -58,9 +58,9 @@ wget -O add_vpn_user.sh https://bit.ly/addvpnuser
```bash
# All values MUST be placed inside 'single quotes'
# DO NOT use these special characters within values: \ " '
sudo sh add_vpn_user.sh 'username_to_add' 'password'
sudo bash add_vpn_user.sh 'username_to_add' 'password'
# OR
sudo sh add_vpn_user.sh 'username_to_update' 'new_password'
sudo bash add_vpn_user.sh 'username_to_update' 'new_password'
```
### Delete a VPN user
@@ -75,7 +75,7 @@ wget -O del_vpn_user.sh https://bit.ly/delvpnuser
```bash
# All values MUST be placed inside 'single quotes'
# DO NOT use these special characters within values: \ " '
sudo sh del_vpn_user.sh 'username_to_delete'
sudo bash del_vpn_user.sh 'username_to_delete'
```
### Update all VPN users
@@ -96,7 +96,7 @@ To use this script, choose one of the following options:
```bash
nano -w update_vpn_users.sh
[Replace with your own values: YOUR_USERNAMES and YOUR_PASSWORDS]
sudo sh update_vpn_users.sh
sudo bash update_vpn_users.sh
```
**Option 2:** Define VPN user details as environment variables:
@@ -108,7 +108,7 @@ sudo sh update_vpn_users.sh
sudo \
VPN_USERS='username1 username2 ...' \
VPN_PASSWORDS='password1 password2 ...' \
sh update_vpn_users.sh
bash update_vpn_users.sh
```
## Manually manage VPN users