Merge pull request #1420 from shapeblue/injectsh-umaskfix systemvm: preserve file permissions, set default umask- In injectkeys.sh which is used to inject new public keys everytime cloudstack starts; while copying files preserve the mode/ownership. This ensures the scripts have same mode bits as originally configured in the iso file - The default umask of 0022 is set in Ubuntu and other packages. Set the same in case of CentOS startup scripts
cc @abhinandanprateek @wido @remibergsma @DaanHoogland @jburwell * pr/1420: systemvm: set default umask 022 in injectkeys.sh Signed-off-by: Will Stevens <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/f9846f17 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f9846f17 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f9846f17 Branch: refs/heads/master Commit: f9846f1785721532482b731a580f1c21ef2114ed Parents: 2ada75c a11f711 Author: Will Stevens <[email protected]> Authored: Thu Apr 21 16:29:51 2016 -0400 Committer: Will Stevens <[email protected]> Committed: Thu Apr 21 16:29:51 2016 -0400 ---------------------------------------------------------------------- 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(-) ----------------------------------------------------------------------
