浏览代码

Merge pull request #4845 from noducks/link_fix

Force flag to prevent file already exists error.
Sven Dowideit 11 年之前
父节点
当前提交
d9c1116303
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      docs/sources/examples/mongodb.rst
  2. 1 1
      docs/sources/examples/running_riak_service.rst

+ 1 - 1
docs/sources/examples/mongodb.rst

@@ -47,7 +47,7 @@ divert ``/sbin/initctl`` to ``/bin/true`` so it thinks everything is working.
 
     # Hack for initctl not being available in Ubuntu
     RUN dpkg-divert --local --rename --add /sbin/initctl
-    RUN ln -s /bin/true /sbin/initctl
+    RUN ln -sf /bin/true /sbin/initctl
 
 Afterwards we'll be able to update our apt repositories and install MongoDB
 

+ 1 - 1
docs/sources/examples/running_riak_service.rst

@@ -88,7 +88,7 @@ Almost there. Next, we add a hack to get us by the lack of ``initctl``:
     # Hack for initctl
     # See: https://github.com/dotcloud/docker/issues/1024
     RUN dpkg-divert --local --rename --add /sbin/initctl
-    RUN ln -s /bin/true /sbin/initctl
+    RUN ln -sf /bin/true /sbin/initctl
 
 Then, we expose the Riak Protocol Buffers and HTTP interfaces, along with SSH: