File tree 5 files changed +5
-0
lines changed
5 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -246,6 +246,7 @@ rabbit_set_config() {
246
246
" s/^[[:space:]]*(${sedKey} [[:space:]]*=[[:space:]]*)\S.*\$ /\1${sedVal} /" \
247
247
" $newConfigFile "
248
248
if ! grep -qE " ^${sedKey} [[:space:]]*=" " $newConfigFile " ; then
249
+ sed -i -e ' $a\' " $newConfigFile " # https://github.com/docker-library/rabbitmq/issues/456#issuecomment-752251872 (https://unix.stackexchange.com/a/31955/153467)
249
250
echo " $key = $val " >> " $newConfigFile "
250
251
fi
251
252
}
Original file line number Diff line number Diff line change @@ -246,6 +246,7 @@ rabbit_set_config() {
246
246
" s/^[[:space:]]*(${sedKey} [[:space:]]*=[[:space:]]*)\S.*\$ /\1${sedVal} /" \
247
247
" $newConfigFile "
248
248
if ! grep -qE " ^${sedKey} [[:space:]]*=" " $newConfigFile " ; then
249
+ sed -i -e ' $a\' " $newConfigFile " # https://github.com/docker-library/rabbitmq/issues/456#issuecomment-752251872 (https://unix.stackexchange.com/a/31955/153467)
249
250
echo " $key = $val " >> " $newConfigFile "
250
251
fi
251
252
}
Original file line number Diff line number Diff line change @@ -246,6 +246,7 @@ rabbit_set_config() {
246
246
" s/^[[:space:]]*(${sedKey} [[:space:]]*=[[:space:]]*)\S.*\$ /\1${sedVal} /" \
247
247
" $newConfigFile "
248
248
if ! grep -qE " ^${sedKey} [[:space:]]*=" " $newConfigFile " ; then
249
+ sed -i -e ' $a\' " $newConfigFile " # https://github.com/docker-library/rabbitmq/issues/456#issuecomment-752251872 (https://unix.stackexchange.com/a/31955/153467)
249
250
echo " $key = $val " >> " $newConfigFile "
250
251
fi
251
252
}
Original file line number Diff line number Diff line change @@ -246,6 +246,7 @@ rabbit_set_config() {
246
246
" s/^[[:space:]]*(${sedKey} [[:space:]]*=[[:space:]]*)\S.*\$ /\1${sedVal} /" \
247
247
" $newConfigFile "
248
248
if ! grep -qE " ^${sedKey} [[:space:]]*=" " $newConfigFile " ; then
249
+ sed -i -e ' $a\' " $newConfigFile " # https://github.com/docker-library/rabbitmq/issues/456#issuecomment-752251872 (https://unix.stackexchange.com/a/31955/153467)
249
250
echo " $key = $val " >> " $newConfigFile "
250
251
fi
251
252
}
Original file line number Diff line number Diff line change @@ -246,6 +246,7 @@ rabbit_set_config() {
246
246
" s/^[[:space:]]*(${sedKey} [[:space:]]*=[[:space:]]*)\S.*\$ /\1${sedVal} /" \
247
247
" $newConfigFile "
248
248
if ! grep -qE " ^${sedKey} [[:space:]]*=" " $newConfigFile " ; then
249
+ sed -i -e ' $a\' " $newConfigFile " # https://github.com/docker-library/rabbitmq/issues/456#issuecomment-752251872 (https://unix.stackexchange.com/a/31955/153467)
249
250
echo " $key = $val " >> " $newConfigFile "
250
251
fi
251
252
}
You can’t perform that action at this time.
0 commit comments