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
... | ... |
@@ -5,11 +5,12 @@ |
5 | 5 |
# **Glance**, **Heat**, **Horizon**, **Keystone**, **Nova**, **Neutron**, |
6 | 6 |
# and **Swift** |
7 | 7 |
|
8 |
-# This script allows you to specify configuration options of what git |
|
9 |
-# repositories to use, enabled services, network configuration and various |
|
10 |
-# passwords. If you are crafty you can run the script on multiple nodes using |
|
11 |
-# shared settings for common resources (mysql, rabbitmq) and build a multi-node |
|
12 |
-# developer install. |
|
8 |
+# This script's options can be changed by setting appropriate environment |
|
9 |
+# variables. You can configure things like which git repositories to use, |
|
10 |
+# services to enable, OS images to use, etc. Default values are located in the |
|
11 |
+# ``stackrc`` file. If you are crafty you can run the script on multiple nodes |
|
12 |
+# using shared settings for common resources (eg., mysql or rabbitmq) and build |
|
13 |
+# a multi-node developer install. |
|
13 | 14 |
|
14 | 15 |
# To keep this script simple we assume you are running on a recent **Ubuntu** |
15 | 16 |
# (12.04 Precise or newer) or **Fedora** (F18 or newer) machine. (It may work |
... | ... |
@@ -30,6 +31,9 @@ unset LANGUAGE |
30 | 30 |
LC_ALL=C |
31 | 31 |
export LC_ALL |
32 | 32 |
|
33 |
+# Make sure umask is sane |
|
34 |
+umask 022 |
|
35 |
+ |
|
33 | 36 |
# Keep track of the devstack directory |
34 | 37 |
TOP_DIR=$(cd $(dirname "$0") && pwd) |
35 | 38 |
|