浏览代码

use su instead of sudo

blissdev 12 年之前
父节点
当前提交
17b7194d91
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/sources/examples/postgresql_service.rst

+ 2 - 2
docs/sources/examples/postgresql_service.rst

@@ -66,14 +66,14 @@ other roles.  Following Vagrant's convention the role will be named
 
 .. code-block:: bash
 
-    sudo postgres -c "createuser -P -d -r -s docker"
+    su postgres -c "createuser -P -d -r -s docker"
 
 Create a test database also named ``docker`` owned by previously created ``docker``
 role.
 
 .. code-block:: bash
 
-    sudo postgres -c "createdb -O docker docker"
+    su postgres -c "createdb -O docker docker"
 
 Adjust PostgreSQL configuration so that remote connections to the
 database are possible. Make sure that inside