fixed sed delimiter for CERTPATH and KEYPATH

need to use another delimiter rather than `/` since the $CERTPATH and $KEYPATH variables contain `/` in the full path and cause the following error
```
`sed: -e expression #1, char 50: unknown option to `s'
```
This commit is contained in:
Mostafa Ghadamyari 2021-08-02 18:35:22 +04:30 committed by GitHub
parent 0dd3d9a0bc
commit add48f9418
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,8 +136,8 @@ fi
if [ -n "$CERTPATH" ] && [ -n "$KEYPATH" ] if [ -n "$CERTPATH" ] && [ -n "$KEYPATH" ]
then then
sed -i "s/#COTURN_TLS_CERT_PATH=.*/COTURN_TLS_CERT_PATH=$CERTPATH/" .env sed -i "s,#COTURN_TLS_CERT_PATH=.*,COTURN_TLS_CERT_PATH=$CERTPATH," .env
sed -i "s/#COTURN_TLS_KEY_PATH=.*/COTURN_TLS_KEY_PATH=$KEYPATH/" .env sed -i "s,#COTURN_TLS_KEY_PATH=.*,COTURN_TLS_KEY_PATH=$KEYPATH," .env
fi fi
if [ "$prometheus_exporter" == "y" ] if [ "$prometheus_exporter" == "y" ]