Answer the question
In order to leave comments, you need to log in
Incorrectly fulfilled SED?
there is a task to set the SED command to edit the config
, the command worked with the error
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'
source file itself
<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>
Answer the question
In order to leave comments, you need to log in
there is a task...
sed -i 's/\(^dsn=\).*/\dsn=pgsql://hostaddr="${HOST}" dbname="${DBNAME}" user="${USER }" password='"${PASS}"' options='-c client_min_messages=NOTICE' application_name='fs'/'
sed: -e expression #1, char 27: unknown option to `s'
Can you understand what should have been written here? not confused by nested single quotes and an abundance of '/' signs?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question