When executing openvpn it first searches PATH, then falls back to some OS-specific locations for finding the binary if it’s not found. Since /usr/local/sbin is not typically on a user’s default PATH, add it to the list of manual fallback paths (example).
Also, add a warning to output when a fallback path is used to more clearly surface this behavior to users in case they care.
Consider adding a flag to allow a user to disable the fallback behavior, in general?
When executing
openvpn
it first searchesPATH
, then falls back to some OS-specific locations for finding the binary if it’s not found. Since/usr/local/sbin
is not typically on a user’s defaultPATH
, add it to the list of manual fallback paths (example).Also, add a warning to output when a fallback path is used to more clearly surface this behavior to users in case they care.
Consider adding a flag to allow a user to disable the fallback behavior, in general?