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 2016/11/30 18:15:27 UTC

[7/9] incubator-trafficcontrol git commit: [TC-54] - Obtain the ATS user's UID after package installation during ORT.

[TC-54] - Obtain the ATS user's UID after package installation during ORT.


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

Branch: refs/heads/psql-rebase
Commit: 4fe8db003175728de42b65e20b041471ed6a7977
Parents: 6aab649
Author: Jeff Elsloo <je...@cable.comcast.com>
Authored: Mon Nov 28 15:52:20 2016 -0700
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Wed Nov 30 11:14:44 2016 -0700

----------------------------------------------------------------------
 traffic_ops/bin/traffic_ops_ort.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/4fe8db00/traffic_ops/bin/traffic_ops_ort.pl
----------------------------------------------------------------------
diff --git a/traffic_ops/bin/traffic_ops_ort.pl b/traffic_ops/bin/traffic_ops_ort.pl
index 0d9f018..8a75bdf 100755
--- a/traffic_ops/bin/traffic_ops_ort.pl
+++ b/traffic_ops/bin/traffic_ops_ort.pl
@@ -172,7 +172,6 @@ my %install_tracker;
 my $config_dirs      = undef;
 my $cfg_file_tracker = undef;
 my $ssl_tracker      = undef;
-my $ats_uid          = getpwnam("ats");
 
 ####-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-####
 #### Start main flow
@@ -198,7 +197,8 @@ if ( $script_mode == $BADASS || $script_mode == $INTERACTIVE || $script_mode ==
 my $header_comment = &get_header_comment($traffic_ops_host);
 
 &process_packages( $hostname_short, $traffic_ops_host );
-
+# get the ats user's UID after package installation in case this is the initial badass
+my $ats_uid          = getpwnam("ats");
 &process_chkconfig( $hostname_short, $traffic_ops_host );
 
 #### First time