Browse code

Always chown $KEYSTONE_CONF_DIR

If the directory exists but is owned by another user, then this will
cause failures.

Note that we already do this for other components (glance, for
instance).

Change-Id: Ic7d2a2dd179f721636afc9ea9c3fe6bb314c9b33

Vincent Untz authored on 2012/12/13 16:47:06
Showing 1 changed files
... ...
@@ -81,8 +81,8 @@ function configure_keystone() {
81 81
 
82 82
     if [[ ! -d $KEYSTONE_CONF_DIR ]]; then
83 83
         sudo mkdir -p $KEYSTONE_CONF_DIR
84
-        sudo chown `whoami` $KEYSTONE_CONF_DIR
85 84
     fi
85
+    sudo chown `whoami` $KEYSTONE_CONF_DIR
86 86
 
87 87
     if [[ "$KEYSTONE_CONF_DIR" != "$KEYSTONE_DIR/etc" ]]; then
88 88
         cp -p $KEYSTONE_DIR/etc/keystone.conf.sample $KEYSTONE_CONF