cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sw...@apache.org
Subject [1/8] git commit: updated refs/heads/master to 37afba0
Date Thu, 21 Apr 2016 20:33:09 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 8ae4da89d -> 37afba05f


systemvm: set default umask 022 in injectkeys.sh

The default umask of 0022 is set in Ubuntu and other packages. Set the same
in case of CentOS startup scripts. Use umask 022 in the injectkeys.sh script

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a11f7110
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a11f7110
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a11f7110

Branch: refs/heads/master
Commit: a11f7110622d1161ad1e363d73a6a40d6fd9c2de
Parents: 9610056
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Fri Feb 19 13:50:37 2016 +0100
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Mar 14 12:21:57 2016 +0100

----------------------------------------------------------------------
 packaging/centos63/cloud-management.rc     | 1 +
 packaging/centos7/cloud-management.service | 1 +
 scripts/vm/systemvm/injectkeys.sh          | 2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a11f7110/packaging/centos63/cloud-management.rc
----------------------------------------------------------------------
diff --git a/packaging/centos63/cloud-management.rc b/packaging/centos63/cloud-management.rc
index f5ed7a8..5b6ba4f 100755
--- a/packaging/centos63/cloud-management.rc
+++ b/packaging/centos63/cloud-management.rc
@@ -87,6 +87,7 @@ handle_pid_file() {
 }
 
 start() {
+    umask 0022
     readpath=$(readlink -f $0)
     source `dirname $readpath`/tomcat.sh
 }

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a11f7110/packaging/centos7/cloud-management.service
----------------------------------------------------------------------
diff --git a/packaging/centos7/cloud-management.service b/packaging/centos7/cloud-management.service
index 19989ec..db52dcf 100644
--- a/packaging/centos7/cloud-management.service
+++ b/packaging/centos7/cloud-management.service
@@ -24,6 +24,7 @@ Description=CloudStack Management Server
 After=syslog.target network.target
 
 [Service]
+UMask=0022
 Type=simple
 EnvironmentFile=/etc/tomcat/tomcat.conf
 Environment="NAME=cloudstack-management"

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a11f7110/scripts/vm/systemvm/injectkeys.sh
----------------------------------------------------------------------
diff --git a/scripts/vm/systemvm/injectkeys.sh b/scripts/vm/systemvm/injectkeys.sh
index 6f224cd..863ca6a 100755
--- a/scripts/vm/systemvm/injectkeys.sh
+++ b/scripts/vm/systemvm/injectkeys.sh
@@ -27,7 +27,7 @@ set -e
 TMP=/tmp
 MOUNTPATH=${HOME}/systemvm_mnt
 TMPDIR=${TMP}/cloud/systemvm
-
+umask 022
 
 clean_up() {
   $SUDO umount $MOUNTPATH


Mime
View raw message