Fix fail connection with new ovpn files

This commit is contained in:
q3aql 2022-06-22 18:34:03 +02:00
parent d3d6985248
commit 4e075ba2dc
2 changed files with 4 additions and 0 deletions

View File

@ -91,6 +91,8 @@ function insertCredentials() {
sed -i "s/auth-user-pass/auth-user-pass ${sed_file_credentials}/g" "${1}"
fi
fi
sed -i "s/up \/etc\/openvpn\/update-resolv-conf//g" "${1}"
sed -i "s/down \/etc\/openvpn\/update-resolv-conf//g" "${1}"
}
function editCredentialsText() {

View File

@ -65,6 +65,8 @@ function insertCredentials() {
sed -i "s/auth-user-pass/auth-user-pass ${sed_file_credentials}/g" "${1}"
fi
fi
sed -i "s/up \/etc\/openvpn\/update-resolv-conf//g" "${1}"
sed -i "s/down \/etc\/openvpn\/update-resolv-conf//g" "${1}"
}
function editCredentials() {