You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2017/10/30 09:40:15 UTC

[cloudstack] branch CLOUDSTACK-10012 updated: fix log dir ownerships

This is an automated email from the ASF dual-hosted git repository.

bhaisaab pushed a commit to branch CLOUDSTACK-10012
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/CLOUDSTACK-10012 by this push:
     new f4d8a84  fix log dir ownerships
f4d8a84 is described below

commit f4d8a8497060e21beec10f739cb435f29150b7ce
Author: Rohit Yadav <ro...@shapeblue.com>
AuthorDate: Mon Oct 30 15:09:59 2017 +0530

    fix log dir ownerships
    
    Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
---
 debian/cloudstack-management.postinst | 1 +
 packaging/centos63/cloud.spec         | 2 ++
 packaging/centos7/cloud.spec          | 2 ++
 3 files changed, 5 insertions(+)

diff --git a/debian/cloudstack-management.postinst b/debian/cloudstack-management.postinst
index ab0dcfc..15f2e81 100644
--- a/debian/cloudstack-management.postinst
+++ b/debian/cloudstack-management.postinst
@@ -55,6 +55,7 @@ if [ "$1" = configure ]; then
 
     chmod 0640 ${CONFDIR}/${DBPROPS}
     chgrp cloud ${CONFDIR}/${DBPROPS}
+    chown -R cloud:cloud /var/log/cloudstack/management
 
     # Add jdbc MySQL driver settings to db.properties if not present
     grep -s -q "db.cloud.driver=jdbc:mysql" ${CONFDIR}/${DBPROPS} || sed -i -e "\$adb.cloud.driver=jdbc:mysql" ${CONFDIR}/${DBPROPS}
diff --git a/packaging/centos63/cloud.spec b/packaging/centos63/cloud.spec
index e6da3a9..def2ce5 100644
--- a/packaging/centos63/cloud.spec
+++ b/packaging/centos63/cloud.spec
@@ -444,6 +444,8 @@ if [ -f "%{_sysconfdir}/cloud.rpmsave/management/db.properties" ]; then
     mv %{_sysconfdir}/cloud.rpmsave/management/db.properties %{_sysconfdir}/cloud.rpmsave/management/db.properties.rpmsave
 fi
 
+chown -R cloud:cloud /var/log/cloudstack/management
+
 %preun agent
 /sbin/service cloudstack-agent stop || true
 if [ "$1" == "0" ] ; then
diff --git a/packaging/centos7/cloud.spec b/packaging/centos7/cloud.spec
index 625cf50..d7ebbb5 100644
--- a/packaging/centos7/cloud.spec
+++ b/packaging/centos7/cloud.spec
@@ -390,6 +390,8 @@ if [ -f %{_sysconfdir}/sysconfig/%{name}-management ] ; then
     mv %{_sysconfdir}/sysconfig/%{name}-management  %{_sysconfdir}/default/%{name}-management
 fi
 
+chown -R cloud:cloud /var/log/cloudstack/management
+
 %preun agent
 /sbin/service cloudstack-agent stop || true
 if [ "$1" == "0" ] ; then

-- 
To stop receiving notification emails like this one, please contact
['"commits@cloudstack.apache.org" <co...@cloudstack.apache.org>'].