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:00 UTC
[11/44] incubator-trafficcontrol git commit: set ownership of
/opt/traffic_ops
set ownership of /opt/traffic_ops
(cherry picked from commit 9f537714f03d613953efebe67d683c7a67966ed9)
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/77306c94
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/77306c94
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/77306c94
Branch: refs/heads/2.0.x
Commit: 77306c9452025d9d4ef168820c0904efbbfc526d
Parents: 415b11c
Author: Dan Kirkwood <da...@gmail.com>
Authored: Wed Apr 12 09:41:24 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Wed Apr 19 15:35:18 2017 -0600
----------------------------------------------------------------------
traffic_ops/install/bin/postinstall | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/77306c94/traffic_ops/install/bin/postinstall
----------------------------------------------------------------------
diff --git a/traffic_ops/install/bin/postinstall b/traffic_ops/install/bin/postinstall
index 2516811..b113224 100755
--- a/traffic_ops/install/bin/postinstall
+++ b/traffic_ops/install/bin/postinstall
@@ -14,9 +14,8 @@
# limitations under the License.
#
-use lib qw(/opt/traffic_ops/install/lib /opt/traffic_ops/install/lib/perl5 /opt/traffic_ops/app/local/lib/perl5 /opt/traffic_ops/app/lib);
+use lib qw(/opt/traffic_ops/install/lib);
$ENV{PATH} = "/opt/traffic_ops/install/bin:$ENV{PATH}";
-$ENV{PERL5LIB} = "/opt/traffic_ops/install/lib:/opt/traffic_ops/install/lib/perl5:/opt/traffic_ops/app/local/lib/perl5:/opt/traffic_ops/app/lib";
use strict;
use warnings;
@@ -815,6 +814,8 @@ sub main {
ProfileCleanup::add_custom_profiles( $custom_profile_dir, $adminconf, $parameters->{"tm.url"} );
}
+ InstallUtils::execCommand("/bin/chown -R trafops:trafops /opt/traffic_ops");
+
InstallUtils::logger("Postinstall complete");
InstallUtils::execCommand( "/bin/gzip", "$logFile" );