generated from pavel.muhortov/template-bash
Compare commits
No commits in common. "925ccfa9b8e0b1f903cb0458c91d158a74a1b2f6" and "8983e51896bcab6b5521efc8aacc6bad20798dd3" have entirely different histories.
925ccfa9b8
...
8983e51896
|
@ -86,7 +86,6 @@ ____
|
||||||
> * 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 |
|
||||||
|-----------|--------------|------------------------|---------------|
|
|-----------|--------------|------------------------|---------------|
|
||||||
|
@ -137,5 +136,5 @@ sudo ./ovpn del username -f
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# check journal
|
# check journal
|
||||||
tail -f /var/log/openvpn/ovpn-client-management.log
|
tail -f /var/log/openvpn/ovpn.log
|
||||||
```
|
```
|
||||||
|
|
|
@ -410,15 +410,6 @@ 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