rych-openvpn/scripts/openvpn-auth.sh

7 lines
115 B
Bash
Executable File

#!/bin/bash
if grep "^${username} ${password};$" /opt/openvpn/users/users.txt >/dev/null ; then
exit 0
fi
exit 1