Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C89F2200B11 for ; Mon, 30 May 2016 03:46:39 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C73DE160A2C; Mon, 30 May 2016 01:46:39 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 184B4160A07 for ; Mon, 30 May 2016 03:46:38 +0200 (CEST) Received: (qmail 3858 invoked by uid 500); 30 May 2016 01:46:38 -0000 Mailing-List: contact commits-help@hawq.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hawq.incubator.apache.org Delivered-To: mailing list commits@hawq.incubator.apache.org Received: (qmail 3849 invoked by uid 99); 30 May 2016 01:46:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 May 2016 01:46:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A186B180603 for ; Mon, 30 May 2016 01:46:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id C--ZU_4QIgjL for ; Mon, 30 May 2016 01:46:33 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id C6FA15F243 for ; Mon, 30 May 2016 01:46:32 +0000 (UTC) Received: (qmail 3842 invoked by uid 99); 30 May 2016 01:46:32 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 May 2016 01:46:32 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D2CF1E0252; Mon, 30 May 2016 01:46:31 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: wangzw@apache.org To: commits@hawq.incubator.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: incubator-hawq git commit: HAWQ-743. fix RPM conflict between apache-tomcat and pxf-service [Forced Update!] Date: Mon, 30 May 2016 01:46:31 +0000 (UTC) archived-at: Mon, 30 May 2016 01:46:40 -0000 Repository: incubator-hawq Updated Branches: refs/heads/master d9d9a29bc -> 2989326b0 (forced update) HAWQ-743. fix RPM conflict between apache-tomcat and pxf-service Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/2989326b Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/2989326b Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/2989326b Branch: refs/heads/master Commit: 2989326b0fb129668fe28dce831480a8b20e4fe3 Parents: ec16d31 Author: Zhanwei Wang Authored: Thu May 19 15:09:19 2016 +0800 Committer: Zhanwei Wang Committed: Mon May 30 09:45:03 2016 +0800 ---------------------------------------------------------------------- pxf/build.gradle | 5 +++-- pxf/tomcat/src/scripts/post-install.sh | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/2989326b/pxf/build.gradle ---------------------------------------------------------------------- diff --git a/pxf/build.gradle b/pxf/build.gradle index eb716fc..00278aa 100644 --- a/pxf/build.gradle +++ b/pxf/build.gradle @@ -474,10 +474,11 @@ task tomcatRpm(type: Rpm) { permissionGroup = 'root' preInstall file('tomcat/src/scripts/pre-install.sh') + postInstall file('tomcat/src/scripts/post-install.sh') from("${tomcatTargetDir}/${tomcatName}") { - user 'tomcat' - permissionGroup 'tomcat' + user 'root' + permissionGroup 'root' into "/opt/pivotal/${tomcatName}" } http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/2989326b/pxf/tomcat/src/scripts/post-install.sh ---------------------------------------------------------------------- diff --git a/pxf/tomcat/src/scripts/post-install.sh b/pxf/tomcat/src/scripts/post-install.sh new file mode 100644 index 0000000..11783ec --- /dev/null +++ b/pxf/tomcat/src/scripts/post-install.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# Post installation script + +chown -R tomcat:tomcat /opt/pivotal/apache-tomcat*