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:14 UTC
[25/44] incubator-trafficcontrol git commit: changed the createdb to
use the newly created traffic_ops user
changed the createdb to use the newly created traffic_ops user
(cherry picked from commit 9937a384044d090f184cc9175972e4de6e04db10)
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/7654a42d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/7654a42d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/7654a42d
Branch: refs/heads/2.0.x
Commit: 7654a42df5c5dc91436ef955e75957cb147d6da3
Parents: c7368b9
Author: Dewayne Richardson <de...@apache.org>
Authored: Thu Apr 13 13:59:39 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Wed Apr 19 15:35:19 2017 -0600
----------------------------------------------------------------------
traffic_ops/app/db/admin.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/7654a42d/traffic_ops/app/db/admin.pl
----------------------------------------------------------------------
diff --git a/traffic_ops/app/db/admin.pl b/traffic_ops/app/db/admin.pl
index c11fffb..e5a0e15 100755
--- a/traffic_ops/app/db/admin.pl
+++ b/traffic_ops/app/db/admin.pl
@@ -207,7 +207,7 @@ sub createdb {
print "Database $db_name already exists\n";
return;
}
- my $cmd = "createdb -h $host_ip -p $host_port -U $db_super_user --owner $db_user $db_name;";
+ my $cmd = "createdb -h $host_ip -p $host_port -U $db_user --owner $db_user $db_name;";
if ( system($cmd) != 0 ) {
die "Can't create db $db_name\n";
}