added check dependencies

This commit is contained in:
Pavel Muhortov 2024-01-07 15:45:16 +03:00
parent c7359cd523
commit 925ccfa9b8

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}" ] && \