You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by fr...@apache.org on 2017/04/20 18:40:27 UTC

[38/44] incubator-trafficcontrol git commit: changed the usage to createuser postgres from the command line

changed the usage to createuser postgres from the command line

(cherry picked from commit 1f4f9e50b58e875ba1f1b2f18dfc46e8d8c1de06)


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/e1124f24
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/e1124f24
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/e1124f24

Branch: refs/heads/2.0.x
Commit: e1124f240c6fded68163a943ff7d63ee38323b94
Parents: bc22f3d
Author: Dewayne Richardson <de...@apache.org>
Authored: Fri Apr 14 08:35:53 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Wed Apr 19 15:36:19 2017 -0600

----------------------------------------------------------------------
 traffic_ops/app/db/admin.pl | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/e1124f24/traffic_ops/app/db/admin.pl
----------------------------------------------------------------------
diff --git a/traffic_ops/app/db/admin.pl b/traffic_ops/app/db/admin.pl
index b7dfcc7..95ac239 100755
--- a/traffic_ops/app/db/admin.pl
+++ b/traffic_ops/app/db/admin.pl
@@ -40,10 +40,8 @@ my $usage = "\n"
 	. "NOTE: \n"
 	. "Postgres Superuser: The 'postgres' superuser needs to be created to run $PROGRAM_NAME and setup databases.\n"
 	. "If the 'postgres' superuser has not been created or password has not been set then run the following commands accordingly. \n\n"
-	. "Create the 'postgres' user as a super user (if not created):\n"
-	. "     \$ createuser postgres -s -r -d\n\n"
-	. "Set the 'postgres' user password:\n"
-	. "     CREATE ROLE postgres WITH CREATEROLE CREATEDB LOGIN ENCRYPTED PASSWORD 'yourpassword'; \n\n"
+	. "Create the 'postgres' user as a super user (if not created):\n\n"
+	. "     \$ createuser postgres --superuser --createrole --createdb --login --pwprompt\n\n"
 	. "Postgres Password: file allows for easy command line access by defaulting the user and password for the database\n"
 	. "without prompts.\n\n"
 	. " Postgres .pgpass file format:\n"