| Summary: | net-misc/openvpn: allow period in config name | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Ed Catmur <ed> |
| Component: | Current packages | Assignee: | Roy Marples (RETIRED) <uberlord> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | ||
| Priority: | High | ||
| Version: | 2006.0 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
Fixed - sync up to get the new script. No rev bump. Thanks |
/etc/init.d/openvpn has: VPNDIR="/etc/openvpn" VPN="${SVCNAME##*.}" if [[ -n ${VPN} && ${SVCNAME} != "openvpn" ]]; then VPNPID="/var/run/openvpn.${VPN}.pid" else VPNPID="/var/run/openvpn.pid" fi VPNCONF="${VPNDIR}/${VPN}.conf" This prevents using period '.' in openvpn config names; VPN="${SVCNAME##*.}" strips everything up to the last period. This could be changed to VPN="${SVCNAME#*.}" to just strip the initial "openvpn.".