mirror of https://github.com/apache/cloudstack.git
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:
parent
9610056fa5
commit
a11f711062
|
|
@ -87,6 +87,7 @@ handle_pid_file() {
|
|||
}
|
||||
|
||||
start() {
|
||||
umask 0022
|
||||
readpath=$(readlink -f $0)
|
||||
source `dirname $readpath`/tomcat.sh
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ set -e
|
|||
TMP=/tmp
|
||||
MOUNTPATH=${HOME}/systemvm_mnt
|
||||
TMPDIR=${TMP}/cloud/systemvm
|
||||
|
||||
umask 022
|
||||
|
||||
clean_up() {
|
||||
$SUDO umount $MOUNTPATH
|
||||
|
|
|
|||
Loading…
Reference in New Issue