diff --git a/Dockerfile b/Dockerfile index 4ece3147..cc575927 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,7 @@ RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/reposi ENV OPENVPN=/etc/openvpn ENV EASYRSA=/usr/share/easy-rsa \ EASYRSA_CRL_DAYS=3650 \ + EASYRSA_CERT_EXPIRE=3650 \ EASYRSA_PKI=$OPENVPN/pki VOLUME ["/etc/openvpn"] diff --git a/bin/ovpn_getclient b/bin/ovpn_getclient index 092aeea9..57877538 100755 --- a/bin/ovpn_getclient +++ b/bin/ovpn_getclient @@ -99,6 +99,8 @@ tls-auth ta.key 1 if [ "$OVPN_COMP_LZO" == "1" ]; then echo "comp-lzo" + else + echo "comp-lzo no" fi if [ -n "$OVPN_OTP_AUTH" ]; then diff --git a/bin/ovpn_run b/bin/ovpn_run index e93201bc..45bcd54f 100755 --- a/bin/ovpn_run +++ b/bin/ovpn_run @@ -101,5 +101,9 @@ if [ $? = 0 ]; then fi fi +if [ -f "$OPENVPN/ovpn_after_run.sh" ]; then + source "$OPENVPN/ovpn_after_run.sh" +fi + echo "Running 'openvpn ${ARGS[@]} ${USER_ARGS[@]}'" exec openvpn ${ARGS[@]} ${USER_ARGS[@]}