Commit 44de8dcc authored by Tommy Lau's avatar Tommy Lau

Use cn-no-route instead of route method

parent 17130c8d
......@@ -57,7 +57,7 @@ RUN buildDeps=" \
&& apt-get purge -y --auto-remove $buildDeps
# Setup config
COPY route.txt /tmp/
COPY cn-no-route.txt /tmp/
RUN set -x \
&& sed -i 's/\.\/sample\.passwd/\/etc\/ocserv\/ocpasswd/' /etc/ocserv/ocserv.conf \
&& sed -i 's/\(max-same-clients = \)2/\110/' /etc/ocserv/ocserv.conf \
......@@ -67,8 +67,8 @@ RUN set -x \
&& sed -i 's/192.168.1.2/8.8.8.8/' /etc/ocserv/ocserv.conf \
&& sed -i 's/^route/#route/' /etc/ocserv/ocserv.conf \
&& sed -i 's/^no-route/#no-route/' /etc/ocserv/ocserv.conf \
&& cat /tmp/route.txt >> /etc/ocserv/ocserv.conf \
&& rm -fr /tmp/route.txt
&& cat /tmp/cn-no-route.txt >> /etc/ocserv/ocserv.conf \
&& rm -fr /tmp/cn-no-route.txt
WORKDIR /etc/ocserv
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment