Update docs

This commit is contained in:
hwdsl2 2022-11-01 23:51:47 -05:00
parent 824d59772e
commit f86bc01ba3
2 changed files with 58 additions and 0 deletions

View File

@ -72,6 +72,35 @@ https://gitlab.com/hwdsl2/openvpn-install/-/raw/master/openvpn-install.sh
如果无法下载,打开 [openvpn-install.sh](openvpn-install.sh),然后点击右边的 `Raw` 按钮。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
</details>
<details>
<summary>
高级:使用自定义选项自动安装。
</summary>
高级用户可以使用自定义选项自动安装 OpenVPN方法是提供一个 Bash "here document" 作为安装脚本的输入。此方法还可用于在安装后提供输入以管理用户。
首先,使用自定义选项以交互方式安装 OpenVPN并写下你对脚本的所有输入值。
```bash
sudo bash openvpn.sh
```
如需删除 OpenVPN请再次运行脚本并选择适当的选项。
然后使用你的输入值创建自定义安装命令。例如:
```bash
sudo bash openvpn.sh <<ANSWERS
1
1194
2
client
y
ANSWERS
```
**注:** 安装选项可能会在脚本的未来版本中发生变化。
</details>
\* 一个云服务器,虚拟专用服务器 (VPS) 或者专用服务器。

View File

@ -72,6 +72,35 @@ https://gitlab.com/hwdsl2/openvpn-install/-/raw/master/openvpn-install.sh
If you are unable to download, open [openvpn-install.sh](openvpn-install.sh), then click the `Raw` button on the right. Press `Ctrl/Cmd+A` to select all, `Ctrl/Cmd+C` to copy, then paste into your favorite editor.
</details>
<details>
<summary>
Advanced: Auto install using custom options.
</summary>
Advanced users can auto install OpenVPN using custom options, by providing a Bash "here document" as input to the setup script. This method can also be used to provide input to manage users after install.
First, install OpenVPN interactively using custom options, and write down all your inputs to the script.
```bash
sudo bash openvpn.sh
```
If you need to remove OpenVPN, run the script again and select the appropriate option.
Next, create the custom install command using your inputs. Example:
```bash
sudo bash openvpn.sh <<ANSWERS
1
1194
2
client
y
ANSWERS
```
**Note:** The install options may change in future versions of the script.
</details>
\* A cloud server, virtual private server (VPS) or dedicated server.