generated from pavel.muhortov/template-bash
Compare commits
3 Commits
8983e51896
...
925ccfa9b8
Author | SHA1 | Date | |
---|---|---|---|
925ccfa9b8 | |||
c7359cd523 | |||
e62a755296 |
|
@ -86,6 +86,7 @@ ____
|
||||||
> * tar
|
> * 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/))
|
> * [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)
|
> * 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 |
|
| POSITION | PARAMETERS | DESCRIPTION | DEFAULT |
|
||||||
|-----------|--------------|------------------------|---------------|
|
|-----------|--------------|------------------------|---------------|
|
||||||
|
@ -136,5 +137,5 @@ sudo ./ovpn del username -f
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# check journal
|
# 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 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
|
getconfig
|
||||||
if [ "${clienttodo}" == "add" ] && \
|
if [ "${clienttodo}" == "add" ] && \
|
||||||
[ -n "${clientname}" ] && \
|
[ -n "${clientname}" ] && \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user