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 9891B200D47 for ; Fri, 10 Nov 2017 14:18:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 97374160BEE; Fri, 10 Nov 2017 13:18:06 +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 DDB6E160BF2 for ; Fri, 10 Nov 2017 14:18:05 +0100 (CET) Received: (qmail 33464 invoked by uid 500); 10 Nov 2017 13:18:04 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 33452 invoked by uid 500); 10 Nov 2017 13:18:04 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 33449 invoked by uid 99); 10 Nov 2017 13:18:04 -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; Fri, 10 Nov 2017 13:18:04 +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 04DE718339D for ; Fri, 10 Nov 2017 13:18:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] 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 3GrOSYLDvWar for ; Fri, 10 Nov 2017 13:18:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 5996160F5D for ; Fri, 10 Nov 2017 13:18:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 96F1BE069F for ; Fri, 10 Nov 2017 13:18:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5584F23F05 for ; Fri, 10 Nov 2017 13:18:00 +0000 (UTC) Date: Fri, 10 Nov 2017 13:18:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-10137) Re-installation fails for cloudstack-management MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 10 Nov 2017 13:18:06 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-10137?page=3Dcom.atl= assian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D16247485#comment-16247485 ]=20 ASF GitHub Bot commented on CLOUDSTACK-10137: --------------------------------------------- marcaurele commented on a change in pull request #2316: CLOUDSTACK-10137: O= nly link log4j if not already present URL: https://github.com/apache/cloudstack/pull/2316#discussion_r150231799 =20 =20 ########## File path: debian/cloudstack-management.postinst ########## @@ -57,7 +57,9 @@ if [ "$1" =3D configure ]; then chgrp cloud ${CONFDIR}/${DBPROPS} chown -R cloud:cloud /var/log/cloudstack/management =20 - ln -s ${CONFDIR}/log4j-cloud.xml ${CONFDIR}/log4j.xml + if [ ! -e "$CONFDIR/log4j.xml" ]; then + ln -s ${CONFDIR}/log4j-cloud.xml ${CONFDIR}/log4j.xml =20 Review comment: Yep ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. =20 For queries about this service, please contact Infrastructure at: users@infra.apache.org > Re-installation fails for cloudstack-management > ----------------------------------------------- > > Key: CLOUDSTACK-10137 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-101= 37 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Reporter: Marc-Aur=C3=A8le Brothier > Assignee: Marc-Aur=C3=A8le Brothier > > If you try to reinstall the package (using --reinstall for example) and b= uild another version of it, the linking of {{log4j.xml}} will fail since th= e file already exists, and let the package improperly installed. -- This message was sent by Atlassian JIRA (v6.4.14#64029)