generated from pavel.muhortov/template-bash
Compare commits
3 Commits
8983e51896
...
925ccfa9b8
Author | SHA1 | Date | |
---|---|---|---|
925ccfa9b8 | |||
c7359cd523 | |||
e62a755296 |
|
@ -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
|
||||
```
|
||||
|
|
|
@ -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}" ] && \
|
||||
|
|
Loading…
Reference in New Issue
Block a user