Merge "./stack.sh complain no /etc/nova/nova.conf"
This commit is contained in:
commit
92a864737e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user