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 15641200C04 for ; Tue, 24 Jan 2017 20:17:31 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 13D45160B3E; Tue, 24 Jan 2017 19:17:31 +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 5BAD5160B38 for ; Tue, 24 Jan 2017 20:17:30 +0100 (CET) Received: (qmail 55000 invoked by uid 500); 24 Jan 2017 19:17:29 -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 54991 invoked by uid 500); 24 Jan 2017 19:17:29 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 54987 invoked by uid 99); 24 Jan 2017 19:17:29 -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; Tue, 24 Jan 2017 19:17:29 +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 D1C3318069B for ; Tue, 24 Jan 2017 19:17:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.998 X-Spam-Level: X-Spam-Status: No, score=-1.998 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id PHVE76B9jqoN for ; Tue, 24 Jan 2017 19:17:27 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 87BE05F201 for ; Tue, 24 Jan 2017 19:17:27 +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 DBC1CE0389 for ; Tue, 24 Jan 2017 19:17:26 +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 6B53F2528B for ; Tue, 24 Jan 2017 19:17:26 +0000 (UTC) Date: Tue, 24 Jan 2017 19:17:26 +0000 (UTC) From: "rashmidixit (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-9462) Systemd packaging for Ubuntu 16.04 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 24 Jan 2017 19:17:31 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15836475#comment-15836475 ] rashmidixit commented on CLOUDSTACK-9462: ----------------------------------------- Github user wido commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1916#discussion_r97613140 --- Diff: debian/cloudstack-management.postinst --- @@ -60,7 +60,26 @@ if [ "$1" = configure ]; then chmod 0640 ${CONFDIR}/${DBPROPS} chgrp cloud ${CONFDIR}/${DBPROPS} - invoke-rc.d tomcat6 stop || true + + if [ -d "/usr/share/tomcat7" ]; then + rm -f /usr/share/cloudstack-management/bin + rm -f /usr/share/cloudstack-management/lib + ln -s /usr/share/tomcat7/bin /usr/share/cloudstack-management/bin + ln -s /usr/share/tomcat7/lib /usr/share/cloudstack-management/lib + invoke-rc.d tomcat7 stop || true + if [ ! -f "/etc/cloudstack/management/server.xml" ]; then + ln -s /etc/cloudstack/management/server7-nonssl.xml /etc/cloudstack/management/server.xml + fi + elif [ -d "/usr/share/tomcat6" ]; then + rm -f /usr/share/cloudstack-management/bin + rm -f /usr/share/cloudstack-management/lib + ln -s /usr/share/tomcat6/bin /usr/share/cloudstack-management/bin + ln -s /usr/share/tomcat6/lib /usr/share/cloudstack-management/lib + invoke-rc.d tomcat6 stop || true + if [ ! -f "/etc/cloudstack/management/server.xml" ]; then + ln -s /etc/cloudstack/management/server-nonssl.xml /etc/cloudstack/management/server.xml + fi + fi --- End diff -- Not sure if we this is the best way. Usually creating directories and moving symlinks is not the way to go in postinst files. When cleaning packages or upgrading this might break things. Can you think of a different way? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- > Systemd packaging for Ubuntu 16.04 > ---------------------------------- > > Key: CLOUDSTACK-9462 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9462 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Reporter: Rohit Yadav > Assignee: Rohit Yadav > Fix For: 4.10.0.0, 4.9.1.0 > > > Support for building deb packages that will work on Ubuntu 16.04 -- This message was sent by Atlassian JIRA (v6.3.4#6332)