From 27f29440d1b6f5343e02b8beff04c21882139ce7 Mon Sep 17 00:00:00 2001 From: Brett Campbell Date: Wed, 19 Feb 2014 18:23:16 -0800 Subject: [PATCH] Set umask Ensure we have a known-good umask. Otherwise files such as /etc/polkit-1/rules.d/50-libvirt-$STACK_USER.rules may not be readable by non-root users afterwards. Also reworded some comments to be more clear. Change-Id: I7653d4eee062cf32df22aa158da6269b1aa9a558 Closes-Bug: #1265195 --- stack.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/stack.sh b/stack.sh index 4a55225685..a5d66cc8e8 100755 --- a/stack.sh +++ b/stack.sh @@ -5,11 +5,12 @@ # **Glance**, **Heat**, **Horizon**, **Keystone**, **Nova**, **Neutron**, # and **Swift** -# This script allows you to specify configuration options of what git -# repositories to use, enabled services, network configuration and various -# passwords. If you are crafty you can run the script on multiple nodes using -# shared settings for common resources (mysql, rabbitmq) and build a multi-node -# developer install. +# This script's options can be changed by setting appropriate environment +# variables. You can configure things like which git repositories to use, +# services to enable, OS images to use, etc. Default values are located in the +# ``stackrc`` file. If you are crafty you can run the script on multiple nodes +# using shared settings for common resources (eg., mysql or rabbitmq) and build +# a multi-node developer install. # To keep this script simple we assume you are running on a recent **Ubuntu** # (12.04 Precise or newer) or **Fedora** (F18 or newer) machine. (It may work @@ -30,6 +31,9 @@ unset LANGUAGE LC_ALL=C export LC_ALL +# Make sure umask is sane +umask 022 + # Keep track of the devstack directory TOP_DIR=$(cd $(dirname "$0") && pwd)