Skip to content

Commit da7697a

Browse files
committed
Cleanup
- Update scripts to use bash instead of sh - Update docs
1 parent dcb3a7a commit da7697a

11 files changed

+19
-19
lines changed

docs/manage-users-zh.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ wget -O add_vpn_user.sh https://bit.ly/addvpnuser
5858
```bash
5959
# 所有变量值必须用 '单引号' 括起来
6060
# *不要* 在值中使用这些字符: \ " '
61-
sudo sh add_vpn_user.sh '要添加的用户名' '密码'
61+
sudo bash add_vpn_user.sh '要添加的用户名' '密码'
6262
# 或者
63-
sudo sh add_vpn_user.sh '要更新的用户名' '新密码'
63+
sudo bash add_vpn_user.sh '要更新的用户名' '新密码'
6464
```
6565

6666
### 删除一个 VPN 用户
@@ -75,7 +75,7 @@ wget -O del_vpn_user.sh https://bit.ly/delvpnuser
7575
```bash
7676
# 所有变量值必须用 '单引号' 括起来
7777
# *不要* 在值中使用这些字符: \ " '
78-
sudo sh del_vpn_user.sh '要删除的用户名'
78+
sudo bash del_vpn_user.sh '要删除的用户名'
7979
```
8080

8181
### 更新所有的 VPN 用户
@@ -96,7 +96,7 @@ wget -O update_vpn_users.sh https://bit.ly/updatevpnusers
9696
```bash
9797
nano -w update_vpn_users.sh
9898
[替换为你自己的值: YOUR_USERNAMES 和 YOUR_PASSWORDS]
99-
sudo sh update_vpn_users.sh
99+
sudo bash update_vpn_users.sh
100100
```
101101

102102
**选项 2:** 将 VPN 用户信息定义为环境变量:
@@ -108,7 +108,7 @@ sudo sh update_vpn_users.sh
108108
sudo \
109109
VPN_USERS='用户名1 用户名2 ...' \
110110
VPN_PASSWORDS='密码1 密码2 ...' \
111-
sh update_vpn_users.sh
111+
bash update_vpn_users.sh
112112
```
113113

114114
## 手动管理 VPN 用户

docs/manage-users.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ wget -O add_vpn_user.sh https://bit.ly/addvpnuser
5858
```bash
5959
# All values MUST be placed inside 'single quotes'
6060
# DO NOT use these special characters within values: \ " '
61-
sudo sh add_vpn_user.sh 'username_to_add' 'password'
61+
sudo bash add_vpn_user.sh 'username_to_add' 'password'
6262
# OR
63-
sudo sh add_vpn_user.sh 'username_to_update' 'new_password'
63+
sudo bash add_vpn_user.sh 'username_to_update' 'new_password'
6464
```
6565

6666
### Delete a VPN user
@@ -75,7 +75,7 @@ wget -O del_vpn_user.sh https://bit.ly/delvpnuser
7575
```bash
7676
# All values MUST be placed inside 'single quotes'
7777
# DO NOT use these special characters within values: \ " '
78-
sudo sh del_vpn_user.sh 'username_to_delete'
78+
sudo bash del_vpn_user.sh 'username_to_delete'
7979
```
8080

8181
### Update all VPN users
@@ -96,7 +96,7 @@ To use this script, choose one of the following options:
9696
```bash
9797
nano -w update_vpn_users.sh
9898
[Replace with your own values: YOUR_USERNAMES and YOUR_PASSWORDS]
99-
sudo sh update_vpn_users.sh
99+
sudo bash update_vpn_users.sh
100100
```
101101

102102
**Option 2:** Define VPN user details as environment variables:
@@ -108,7 +108,7 @@ sudo sh update_vpn_users.sh
108108
sudo \
109109
VPN_USERS='username1 username2 ...' \
110110
VPN_PASSWORDS='password1 password2 ...' \
111-
sh update_vpn_users.sh
111+
bash update_vpn_users.sh
112112
```
113113

114114
## Manually manage VPN users

extras/add_vpn_user.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
#
33
# Script to add/update a VPN user for both IPsec/L2TP and Cisco IPsec
44
#

extras/del_vpn_user.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
#
33
# Script to delete a VPN user for both IPsec/L2TP and Cisco IPsec
44
#

extras/update_vpn_users.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
#
33
# Script to update VPN users for both IPsec/L2TP and Cisco IPsec
44
#

extras/vpnupgrade_amzn.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
#
33
# Script to update Libreswan on Amazon Linux 2
44
#

extras/vpnupgrade_centos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
#
33
# Script to update Libreswan on CentOS and RHEL
44
#

extras/vpnupgrade_ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
#
33
# Script to update Libreswan on Ubuntu and Debian
44
#

vpnsetup_amzn.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
#
33
# Script for automatic setup of an IPsec VPN server on Amazon Linux 2
44
# Works on any dedicated server or virtual private server (VPS)

vpnsetup_centos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
#
33
# Script for automatic setup of an IPsec VPN server on CentOS and RHEL
44
# Works on any dedicated server or virtual private server (VPS)

vpnsetup_ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
#
33
# Script for automatic setup of an IPsec VPN server on Ubuntu and Debian
44
# Works on any dedicated server or virtual private server (VPS)

0 commit comments

Comments
 (0)