Add auth-user-pass

[FIX] I forgot to add the line to read the credentials
This commit is contained in:
Rodolfo Salas
2019-11-05 09:07:16 +01:00
committed by GitHub
parent ae5732851d
commit 30f6871441

View File

@@ -27,6 +27,7 @@ IFS=$'\n'
for i in $(find ${DIR} -name "*.ovpn")
do
sed -i 's/route 0.0.0.0 0.0.0.0/redirect-gateway/' $i
sed -i 's/auth-user-pass/auth-user-pass \/config\/openvpn-credentials.txt/' $i
if [[ $i == *TCP* ]];
then
sed -i 's/explicit-exit-notify//' $i