Merge "./stack.sh complain no /etc/nova/nova.conf"

This commit is contained in:
Jenkins 2013-10-22 14:02:59 +00:00 committed by Gerrit Code Review
commit 92a864737e

View File

@ -713,7 +713,8 @@ function iniset() {
local section=$2
local option=$3
local value=$4
if ! grep -q "^\[$section\]" "$file"; then
if ! grep -q "^\[$section\]" "$file" 2>/dev/null; then
# Add section at the end
echo -e "\n[$section]" >>"$file"
fi