generated from pavel.muhortov/template-bash
added check dependencies
This commit is contained in:
parent
c7359cd523
commit
925ccfa9b8
|
@ -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