From 1e73f667c93fe7bc7a765f205e1eb62fb778f99c Mon Sep 17 00:00:00 2001 From: Boris Schrijver Date: Mon, 23 Nov 2015 00:05:53 +0100 Subject: [PATCH 1/2] CLOUDSTACK-9076: Changed ownership of directory /var/lib/cloudstack to cloud. --- python/lib/cloudutils/serviceConfigServer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/lib/cloudutils/serviceConfigServer.py b/python/lib/cloudutils/serviceConfigServer.py index bedd8851ce8..ea7e125e9ab 100644 --- a/python/lib/cloudutils/serviceConfigServer.py +++ b/python/lib/cloudutils/serviceConfigServer.py @@ -121,6 +121,7 @@ class cloudManagementConfig(serviceCfgBase): #distro like sl 6.1 needs this folder, or tomcat6 failed to start checkHostName() bash("mkdir /var/log/cloudstack-management/") + bash("chown cloud:cloud -R /var/lib/cloudstack") #set max process per account is unlimited if os.path.exists("/etc/security/limits.conf"): cfo = configFileOps("/etc/security/limits.conf") From e2fc270480916901b2bfd4f4bab376a6008f9f57 Mon Sep 17 00:00:00 2001 From: Boris Schrijver Date: Mon, 23 Nov 2015 00:07:29 +0100 Subject: [PATCH 2/2] CLOUDSTACK-9078: Gave scripts executable permissions. --- python/lib/cloudutils/serviceConfigServer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/lib/cloudutils/serviceConfigServer.py b/python/lib/cloudutils/serviceConfigServer.py index ea7e125e9ab..4d45b13176d 100644 --- a/python/lib/cloudutils/serviceConfigServer.py +++ b/python/lib/cloudutils/serviceConfigServer.py @@ -121,7 +121,8 @@ class cloudManagementConfig(serviceCfgBase): #distro like sl 6.1 needs this folder, or tomcat6 failed to start checkHostName() bash("mkdir /var/log/cloudstack-management/") - bash("chown cloud:cloud -R /var/lib/cloudstack") + bash("chown cloud:cloud -R /var/lib/cloudstack/") + bash("chmod +x -R /usr/share/cloudstack-management/webapps/client/WEB-INF/classes/scripts/") #set max process per account is unlimited if os.path.exists("/etc/security/limits.conf"): cfo = configFileOps("/etc/security/limits.conf")