Changed format of dbconf.yml to more closely match format of old postinstall


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

Branch: refs/heads/master
Commit: ed5828644972949b054ce5d1ddab121655eb7df9
Parents: 2778409
Author: peryder <pery...@cisco.com>
Authored: Mon Dec 19 15:06:29 2016 -0500
Committer: Dan Kirkwood <dang...@gmail.com>
Committed: Fri Jan 27 09:52:53 2017 -0700

----------------------------------------------------------------------
 traffic_ops/install/bin/postinstall-new | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/ed582864/traffic_ops/install/bin/postinstall-new
----------------------------------------------------------------------
diff --git a/traffic_ops/install/bin/postinstall-new 
b/traffic_ops/install/bin/postinstall-new
index 08ba7a7..1092338 100755
--- a/traffic_ops/install/bin/postinstall-new
+++ b/traffic_ops/install/bin/postinstall-new
@@ -172,11 +172,9 @@ sub generateDbConf {
 
     # No YAML library installed, but this is a simple file..
     open( my $fh, '>', $toDBFileName ) or errorOut("Can't write to 
$toDBFileName!");
-    print $fh "version: 1.0\n";
-    print $fh "name: dbconf.yml\n\n";
     print $fh "production:\n";
-    print $fh "        driver: ", getDbDriver() . "\n";
-    print $fh "        open: 
tcp:$dbconf{hostname}:$dbconf{port}*$dbconf{dbname}/$dbconf{user}/$dbconf{password}\n";
+    print $fh "    driver: ", getDbDriver() . "\n";
+    print $fh "    open: 
tcp:$dbconf{hostname}:$dbconf{port}*$dbconf{dbname}/$dbconf{user}/$dbconf{password}\n";
     close $fh;
 
     return \%todbconf;

Reply via email to