./stack.sh complain no /etc/nova/nova.conf
If nova.conf doesn't exist, mute error generated by grep. Closes-Bug: #1239044 Change-Id: Ia497e2a9d8395cc11850fb16fd4075af9855b2a5
This commit is contained in:
parent
3931573f2b
commit
f43f3a59c2
@ -697,7 +697,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user