есть задача задать команду SED на правку конфига
команда отработала с ошибкой
docker exec -it 4bbe177e62df sed -i 's/\(^dsn=\).*/\dsn=pgsql://hostaddr="${HOST}" dbname="${DBNAME}" user="${USER}" password='"${PASS}"' options='-c client_min_messages=NOTICE' application_name='fs'/' /etc/freeswitch/vars.xml
sed: -e expression #1, char 27: unknown option to `s'
сам исходный файл
<include>
<X-PRE-PROCESS cmd="set" data="default_password=12344"/>
<X-PRE-PROCESS cmd="set" data="dsn=pgsql://hostaddr=0.0.0.0 dbname=freeswitch user=test password='test111' options='-c client_min_messages=NOTICE' application_name='fs'"/>
<X-PRE-PROCESS cmd="set" data="sound_prefix=$${sounds_dir}/en/us/callie"/>
<X-PRE-PROCESS cmd="set" data="global_record_format=mp3"/>
<X-PRE-PROCESS cmd="set" data="node=100"/>
<X-PRE-PROCESS cmd="set" data="nodename=softswitch"/>
</include>