fix: openvpn at /usr/sbin/openvpn2.5
- Fix operation on QNAP devices - Refer to #157
This commit is contained in:
@@ -179,6 +179,7 @@ RUN apk add --no-cache --update -l apk-tools && \
|
|||||||
mv /usr/sbin/openvpn /usr/sbin/openvpn2.4 && \
|
mv /usr/sbin/openvpn /usr/sbin/openvpn2.4 && \
|
||||||
apk del openvpn && \
|
apk del openvpn && \
|
||||||
apk add --no-cache --update openvpn ca-certificates iptables ip6tables unbound tzdata && \
|
apk add --no-cache --update openvpn ca-certificates iptables ip6tables unbound tzdata && \
|
||||||
|
mv /usr/sbin/openvpn /usr/sbin/openvpn2.5 && \
|
||||||
rm -rf /var/cache/apk/* /etc/unbound/* /usr/sbin/unbound-* /etc/openvpn/*.sh /usr/lib/openvpn/plugins/openvpn-plugin-down-root.so && \
|
rm -rf /var/cache/apk/* /etc/unbound/* /usr/sbin/unbound-* /etc/openvpn/*.sh /usr/lib/openvpn/plugins/openvpn-plugin-down-root.so && \
|
||||||
deluser openvpn && \
|
deluser openvpn && \
|
||||||
deluser unbound && \
|
deluser unbound && \
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ var ErrVersionUnknown = errors.New("OpenVPN version is unknown")
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
binOpenvpn24 = "openvpn2.4"
|
binOpenvpn24 = "openvpn2.4"
|
||||||
binOpenvpn25 = "openvpn"
|
binOpenvpn25 = "openvpn2.5"
|
||||||
)
|
)
|
||||||
|
|
||||||
func start(ctx context.Context, starter command.Starter, version string, flags []string) (
|
func start(ctx context.Context, starter command.Starter, version string, flags []string) (
|
||||||
|
|||||||
Reference in New Issue
Block a user