use su instead of sudo

This commit is contained in:
blissdev 2013-09-24 02:25:16 -05:00
parent 15ad2915b9
commit 17b7194d91
1 changed files with 2 additions and 2 deletions

View File

@ -66,14 +66,14 @@ other roles. Following Vagrant's convention the role will be named
.. code-block:: bash .. 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`` Create a test database also named ``docker`` owned by previously created ``docker``
role. role.
.. code-block:: bash .. 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 Adjust PostgreSQL configuration so that remote connections to the
database are possible. Make sure that inside database are possible. Make sure that inside