|
@@ -32,15 +32,15 @@ fi
|
|
|
|
|
|
if [ ${mode} == "client" ]
|
|
if [ ${mode} == "client" ]
|
|
then
|
|
then
|
|
- mv /etc/openvpn/client.conf /etc/openvpn/ovpn.conf
|
|
|
|
- echo "remote ${server}" >> /etc/openvpn/ovpn.conf
|
|
|
|
- echo -e "LegacySigningMDs md2 md5\nMinimumDHBits 512\n" >> /etc/pki/tls/legacy-settings
|
|
|
|
- exec "/usr/sbin/openvpn" "--config" "/etc/openvpn/ovpn.conf" "$@"
|
|
|
|
|
|
+ mv /etc/openvpn/client.conf /etc/openvpn/ovpn.conf
|
|
|
|
+ echo "remote ${server}" >> /etc/openvpn/ovpn.conf
|
|
|
|
+ echo -e "LegacySigningMDs md2 md5\nMinimumDHBits 512\n" >> /etc/pki/tls/legacy-settings
|
|
|
|
+ exec "/usr/sbin/openvpn" "--config" "/etc/openvpn/ovpn.conf" "$@"
|
|
fi
|
|
fi
|
|
|
|
|
|
if [ ${mode} == "keygen" ]
|
|
if [ ${mode} == "keygen" ]
|
|
then
|
|
then
|
|
- echo "$SSHKEY" > /tmp/keyfile
|
|
|
|
- chmod 0400 /tmp/keyfile
|
|
|
|
- exec "$@"
|
|
|
|
|
|
+ echo "$SSHKEY" > /tmp/keyfile
|
|
|
|
+ chmod 0400 /tmp/keyfile
|
|
|
|
+ exec "$@"
|
|
fi
|
|
fi
|