Use postgresql options to reduce questions
authorDavid <davide.fiorentino.loregio@gmail.com>
Thu, 12 Mar 2015 16:07:42 +0000 (17:07 +0100)
committerDavid <davide.fiorentino.loregio@gmail.com>
Thu, 12 Mar 2015 16:07:42 +0000 (17:07 +0100)
-S set new role to not be a superuser
-R disable the creation of more new roles for the new role

doc/install/install-api-server.html.textile.liquid

index 1af21e9f06dd7f9c680b4f4e91640f712cedc075..9db9eb920fda9e531e04b5cf8147974acf85fb97 100644 (file)
@@ -109,12 +109,10 @@ Generate a new database password. Nobody ever needs to memorize it or type it, s
 Create a new database user with permission to create its own databases.
 
 <notextile>
-<pre><code>~/arvados/services/api$ <span class="userinput">sudo -u postgres createuser --createdb --encrypted --pwprompt arvados</span>
+<pre><code>~/arvados/services/api$ <span class="userinput">sudo -u postgres createuser --createdb --encrypted -R -S --pwprompt arvados</span>
 [sudo] password for <b>you</b>: <span class="userinput">yourpassword</span>
 Enter password for new role: <span class="userinput">paste-password-you-generated</span>
 Enter it again: <span class="userinput">paste-password-again</span>
-Shall the new role be a superuser? (y/n) <span class="userinput">n</span>
-Shall the new role be allowed to create more new roles? (y/n) <span class="userinput">n</span>
 </code></pre></notextile>
 
 Configure API server to connect to your database by creating and updating @config/database.yml@. Replace the @xxxxxxxx@ database password placeholders with the new password you generated above.