Compare commits

..

3 Commits

Author SHA1 Message Date
925ccfa9b8 added check dependencies 2024-01-07 15:45:16 +03:00
c7359cd523 added dependencies 2024-01-07 15:19:37 +03:00
e62a755296 fixed readme typo 2024-01-06 09:37:04 +03:00
2 changed files with 11 additions and 1 deletions

View File

@ -86,6 +86,7 @@ ____
> * tar
> * [Python 3](https://www.python.org/downloads/) (tested version 3.9.5 on [Debian GNU/Linux 11](http://ftp.debian.org/debian/dists/bullseye/))
> * existing [/usr/local/bin/sendmail.py](https://git.hmp.today/pavel.muhortov/utils#sendmail-py)
> * [curl](https://curl.se/download.html) (tested version 7.74.0 on [Debian GNU/Linux 11](http://ftp.debian.org/debian/dists/bullseye/))
| POSITION | PARAMETERS | DESCRIPTION | DEFAULT |
|-----------|--------------|------------------------|---------------|
@ -136,5 +137,5 @@ sudo ./ovpn del username -f
```bash
# check journal
tail -f /var/log/openvpn/ovpn.log
tail -f /var/log/openvpn/ovpn-client-management.log
```

View File

@ -410,6 +410,15 @@ logs=/dev/null
#
if checkroot; then
if ! command -v chpasswd &> /dev/null || \
! command -v /usr/sbin/openvpn &> /dev/null || \
! command -v /etc/openvpn/easy-rsa/easyrsa &> /dev/null || \
! command -v tar &> /dev/null || \
! command -v /usr/local/bin/sendmail.py &> /dev/null || \
! command -v python3 &> /dev/null || \
! command -v curl &> /dev/null; then
execerror "Not found dependencies"
fi
getconfig
if [ "${clienttodo}" == "add" ] && \
[ -n "${clientname}" ] && \