add dependencies description

This commit is contained in:
Pavel Muhortov 2023-08-14 11:32:01 +03:00
parent 269f38e7ed
commit a7669b4360
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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')