logging tweaks for devstack/keystone and cd for keystone db_sync
diff --git a/stack.sh b/stack.sh
index c7eb2aa..33665e2 100755
--- a/stack.sh
+++ b/stack.sh
@@ -1362,11 +1362,12 @@
if [ "$SYSLOG" != "False" ]; then
+ cp $KEYSTONE_DIR/etc/logging.conf.sample $KEYSTONE_DIR/etc/logging.conf
sed -i -e '/^handlers=devel$/s/=devel/=production/' \
- $KEYSTONE_DIR/etc/logging.cnf
+ $KEYSTONE_DIR/etc/logging.conf
sed -i -e "/^log_file/s/log_file/\#log_file/" \
$KEYSTONE_DIR/etc/keystone.conf
- KEYSTONE_LOG_CONFIG="--log-config $KEYSTONE_DIR/etc/logging.cnf"
+ KEYSTONE_LOG_CONFIG="--log-config $KEYSTONE_DIR/etc/logging.conf"
fi
fi
@@ -1395,8 +1396,10 @@
" -i $KEYSTONE_DATA
# initialize keystone with default users/endpoints
+ pushd $KEYSTONE_DIR
$KEYSTONE_DIR/bin/keystone-manage db_sync
ENABLED_SERVICES=$ENABLED_SERVICES BIN_DIR=$KEYSTONE_DIR/bin bash $KEYSTONE_DATA
+ popd
fi