1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:50 +02:00

fix ocserv no-route

This commit is contained in:
kev 2016-06-30 02:48:35 +08:00
parent eb308805e9
commit 336953398a

View File

@ -87,6 +87,6 @@ certtool --to-p12 \
sed -i -e "s@^ipv4-network =.*@ipv4-network = ${VPN_NETWORK}@" \
-e "s@^ipv4-netmask =.*@ipv4-netmask = ${VPN_NETMASK}@" \
-e 's@^no-route =.*$@no-route = ${LAN_NETWORK}/${LAN_NETMASK}@' /etc/ocserv/ocserv.conf
-e "s@^no-route =.*$@no-route = ${LAN_NETWORK}/${LAN_NETMASK}@" /etc/ocserv/ocserv.conf
echo "${VPN_PASSWORD}" | ocpasswd -c /etc/ocserv/ocpasswd "${VPN_USERNAME}"