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>
This commit is contained in:
Rohit Yadav 2016-02-19 13:50:37 +01:00
parent 9610056fa5
commit a11f711062
3 changed files with 3 additions and 1 deletions

View File

@ -87,6 +87,7 @@ handle_pid_file() {
}
start() {
umask 0022
readpath=$(readlink -f $0)
source `dirname $readpath`/tomcat.sh
}

View File

@ -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"

View File

@ -27,7 +27,7 @@ set -e
TMP=/tmp
MOUNTPATH=${HOME}/systemvm_mnt
TMPDIR=${TMP}/cloud/systemvm
umask 022
clean_up() {
$SUDO umount $MOUNTPATH