You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2017/01/27 16:53:52 UTC
[31/36] incubator-trafficcontrol git commit: Added description to
database.conf
Added description to database.conf
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/2778409e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/2778409e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/2778409e
Branch: refs/heads/master
Commit: 2778409efa0d8c86dd9335742f11b2b158e9d999
Parents: c83a26b
Author: peryder <pe...@cisco.com>
Authored: Mon Dec 19 14:56:31 2016 -0500
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Fri Jan 27 09:52:53 2017 -0700
----------------------------------------------------------------------
traffic_ops/install/bin/postinstall-new | 2 +-
traffic_ops/install/lib/ProfileCleanup.pm | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/2778409e/traffic_ops/install/bin/postinstall-new
----------------------------------------------------------------------
diff --git a/traffic_ops/install/bin/postinstall-new b/traffic_ops/install/bin/postinstall-new
index d345663..08ba7a7 100755
--- a/traffic_ops/install/bin/postinstall-new
+++ b/traffic_ops/install/bin/postinstall-new
@@ -162,7 +162,7 @@ sub generateDbConf {
my $toDBFileName = shift;
my %dbconf = getConfig( $userInput, $dbFileName );
-
+ $dbconf{"description"} = "$dbconf{type} database on $dbconf{hostname}:$dbconf{port}";
make_path( dirname($dbFileName), { mode => 0755 } );
writeJson( $dbFileName, \%dbconf );
logger( "Database configuration has been saved", "info" );
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/2778409e/traffic_ops/install/lib/ProfileCleanup.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/install/lib/ProfileCleanup.pm b/traffic_ops/install/lib/ProfileCleanup.pm
index 1e6edf9..3f7ce4a 100644
--- a/traffic_ops/install/lib/ProfileCleanup.pm
+++ b/traffic_ops/install/lib/ProfileCleanup.pm
@@ -27,6 +27,7 @@ our %EXPORT_TAGS = ( all => \@EXPORT_OK );
sub profile_replace {
my ($profile) = @_;
my $profile_bak = $profile . ".bak";
+ logger("Replacing parameters in profile: $profile", "info");
rename( $profile, $profile_bak ) or die("rename(): $!");
open( my $fh, '<', $profile_bak ) or die("open(): $!");
open( my $ofh, '>', $profile ) or die("open(): $!");