generated from pavel.muhortov/template-bash
add dependencies description
This commit is contained in:
parent
269f38e7ed
commit
a7669b4360
|
@ -17,6 +17,7 @@ ____
|
|||
> * privileged rights
|
||||
> * [Python 3](https://www.python.org/downloads/) (tested version 3.9.5 on [Debian GNU/Linux 11](http://ftp.debian.org/debian/dists/bullseye/))
|
||||
> * [cryptography](https://cryptography.io/) Python 3 module (tested version 41.0.1)
|
||||
> * [requests](https://requests.readthedocs.io/) Python 3 module (tested version 2.31.0)
|
||||
> * Existing `status`, `server`, `ca`, `cert` options in [server.conf](https://openvpn.net/community-resources/reference-manual-for-openvpn-2-5/#options)
|
||||
|
||||
| PARAMETERS | DESCRIPTION | DEFAULT |
|
||||
|
@ -41,7 +42,7 @@ sudo systemctl restart openvpn@server
|
|||
|
||||
```bash
|
||||
# install dependencies
|
||||
sudo pip install cryptography
|
||||
sudo pip install cryptography requests
|
||||
# download
|
||||
sudo wget https://git.hmp.today/pavel.muhortov/openvpn-management/raw/branch/master/ovpn_status.py -O /etc/openvpn/server/ovpn_status.py
|
||||
sudo chmod +x /etc/openvpn/server/ovpn_status.py
|
||||
|
|
|
@ -195,6 +195,7 @@ if __name__ == "__main__":
|
|||
description='OpenVPN server status parser',
|
||||
epilog='Dependencies: '
|
||||
'- Python 3 (tested version 3.9.5), '
|
||||
'- Python 3 modules: cryptography, requests '
|
||||
)
|
||||
args.add_argument('-s', '--server_conf', type=str, required=True,
|
||||
help='path to OpenVPN server configuration file')
|
||||
|
|
Loading…
Reference in New Issue
Block a user