-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auth.sh #183
Comments
And what exactly is working wrong? |
auth_usr=$(head -1 $1) |
and why doesn't it work for you? |
Hmm, just make some test inside container: |
Just check again and look like your version is working. I don |
auth.sh not working correclty.
working version is:
`#!/usr/bin/env bash
PATH=$PATH:/usr/local/bin
set -e
env
readarray -t lines < $1
auth_usr=${lines[0]}
auth_passwd=${lines[1]}
if [ $common_name = $auth_usr ]; then
openvpn-user auth --db.path /etc/openvpn/easyrsa/pki/users.db --user ${auth_usr} --password ${auth_passwd}
else
echo "Authorization failed."
exit 1
fi
`
auth.sh.txt
The text was updated successfully, but these errors were encountered: