cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhtyd <>
Subject [GitHub] cloudstack pull request #1647: [lts] CLOUDSTACK-9462: Systemd support for Ub...
Date Thu, 25 Aug 2016 11:45:38 GMT
Github user rhtyd commented on a diff in the pull request:
    --- Diff: debian/cloudstack-agent.postinst ---
    @@ -41,6 +41,12 @@ case "$1" in
                 mkdir /etc/libvirt/hooks
             cp -a /usr/share/cloudstack-agent/lib/libvirtqemuhook /etc/libvirt/hooks/qemu
    +        # Update JAVA_HOME in /etc/default/cloudstack-agent to default JRE
    +        JAVA_HOME=$(readlink -f /usr/bin/java | sed 's/\/jre.*java//g')
    +        if [ -d "$JAVA_HOME" ]; then
    +            sed -i "s:^JAVA_HOME=.*:JAVA_HOME=${JAVA_HOME}:" /etc/default/cloudstack-agent
    +        fi
    --- End diff --
    @vincentbernat  thanks, it makes sense. I'll see if we can move this to the `default/files`.
An alternative is to document this, we can keep some default path and in our installation/upgrade
documentation suggest the admin to fix the JAVA_HOME here if it's something non-default. The
code I've used here simply replaces JAVA_HOME to whatever is set globally on that host.

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 or file a JIRA ticket
with INFRA.

View raw message