set ownership of /opt/traffic_ops
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/9f537714 Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/9f537714 Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/9f537714 Branch: refs/heads/master Commit: 9f537714f03d613953efebe67d683c7a67966ed9 Parents: 8f5234d Author: Dan Kirkwood <[email protected]> Authored: Wed Apr 12 09:41:24 2017 -0600 Committer: Jeremy Mitchell <[email protected]> Committed: Wed Apr 12 13:09:31 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/9f537714/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" );
