cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-9462) Systemd packaging for Ubuntu 16.04
Date Tue, 24 Jan 2017 20:43:26 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-9462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15836606#comment-15836606
] 

ASF GitHub Bot commented on CLOUDSTACK-9462:
--------------------------------------------

Github user ustcweizhou commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1916#discussion_r97645697
  
    --- 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 --
    
    @wido I was thinking of other ways but could not find. Do you have any idea?
    We can remove this change and ask users to execute "cloudstack-setup-management --tomcat7"
after each upgrade. It seems not wise.
    
    I have tested the upgrade from 4.7.1 to 4.9.3.0-SNAPSHOT on ubuntu 12.04 and 16.04 without
any issue.
    I did not test the os upgrade or tomcat upgrade.


> 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)

Mime
View raw message